config-loader: pass in env as an option

This commit is contained in:
Patrik Oldsberg
2020-08-07 10:52:50 +02:00
parent 74edab290a
commit a37aa1d994
8 changed files with 13 additions and 4 deletions
+1
View File
@@ -23,6 +23,7 @@ import { loadConfig } from '@backstage/config-loader';
export async function loadBackendConfig() {
const paths = findPaths(__dirname);
const configs = await loadConfig({
env: process.env.NODE_ENV,
rootPaths: [paths.targetDir, paths.targetRoot],
shouldReadSecrets: true,
});