Fix runtime loader search path for sit env (#638)

This commit is contained in:
shenlan 2025-11-02 18:11:33 +08:00 committed by GitHub
parent 22d1907828
commit db07406186

View File

@ -262,6 +262,11 @@ export function readRuntimeEnvSettings(): RuntimeEnvSettings {
detectedBy: `file:dashboard/config/${RUNTIME_ENV_CONFIG_BASENAME}`,
})
candidates.push({
path: path.resolve(process.cwd(), 'config', RUNTIME_ENV_CONFIG_BASENAME),
detectedBy: `file:config/${RUNTIME_ENV_CONFIG_BASENAME}`,
})
candidates.push({
path: path.resolve(process.cwd(), RUNTIME_ENV_CONFIG_BASENAME),
detectedBy: `file:${RUNTIME_ENV_CONFIG_BASENAME}`,