config: flip priority order of ConfigReader.fromConfigs

This commit is contained in:
Patrik Oldsberg
2020-08-07 11:27:46 +02:00
parent f7532bcf1c
commit 1f2216fd77
13 changed files with 68 additions and 71 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export async function loadBackendConfig() {
const paths = findPaths(__dirname);
const configs = await loadConfig({
env: process.env.NODE_ENV,
rootPaths: [paths.targetDir, paths.targetRoot],
rootPaths: [paths.targetRoot, paths.targetDir],
shouldReadSecrets: true,
});
return configs;