config-loader: use multiple config roots

This commit is contained in:
Patrik Oldsberg
2020-08-07 10:37:22 +02:00
parent 032ba401af
commit 811328ed1f
8 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import { loadConfig } from '@backstage/config-loader';
export async function loadBackendConfig() {
const paths = findPaths(__dirname);
const configs = await loadConfig({
rootPath: paths.targetRoot,
rootPaths: [paths.targetDir, paths.targetRoot],
shouldReadSecrets: true,
});
return configs;