Use APP_ENV to determine what config to load, falling back to NODE_ENV

This commit is contained in:
Patrik Oldsberg
2020-10-10 17:41:03 +02:00
parent dc0261e6bc
commit 8afce088ac
13 changed files with 25 additions and 13 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ type ResolveOptions = {
* Resolves all configuration files that should be loaded in the given environment.
*
* For each root directory, search for the default app-config.yaml, along with suffixed
* NODE_ENV and local variants, e.g. app-config.production.yaml or app-config.development.local.yaml
* APP_ENV and local variants, e.g. app-config.production.yaml or app-config.development.local.yaml
*
* The priority order of config loaded through suffixes is `env > local > none`, meaning that
* for example app-config.development.yaml has higher priority than `app-config.local.yaml`.