Merge pull request #4246 from backstage/rugvip/nemac

remove last usages of APP_ENV
This commit is contained in:
Patrik Oldsberg
2021-01-25 19:22:40 +01:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Run the following commands if you have Docker environment
```bash
$ yarn install
$ yarn docker-build
$ docker run --rm -it -p 7000:7000 -e APP_ENV=production -e NODE_ENV=development example-backend:latest
$ docker run --rm -it -p 7000:7000 -e NODE_ENV=development example-backend:latest
```
Then open http://localhost:7000 on your browser.
-1
View File
@@ -37,7 +37,6 @@ export async function loadBackendConfig(options: Options): Promise<Config> {
/* eslint-disable-next-line no-restricted-syntax */
const paths = findPaths(__dirname);
const configs = await loadConfig({
env: process.env.APP_ENV ?? process.env.NODE_ENV ?? 'development',
configRoot: paths.targetRoot,
configPaths: configOpts.map(opt => resolvePath(opt)),
});