Merge pull request #1860 from spotify/rugvip/config

config,config-loader: add support for suffixed config files and multiple roots
This commit is contained in:
Patrik Oldsberg
2020-08-10 11:51:07 +02:00
committed by GitHub
14 changed files with 222 additions and 63 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ import { loadConfig } from '@backstage/config-loader';
export async function loadBackendConfig() {
const paths = findPaths(__dirname);
const configs = await loadConfig({
rootPath: paths.targetRoot,
env: process.env.NODE_ENV,
rootPaths: [paths.targetRoot, paths.targetDir],
shouldReadSecrets: true,
});
return configs;