Commit afee1226 authored by Daniel Caillibaud's avatar Daniel Caillibaud

on laisse préprod si c'était en conf locale, même avec process.env.NODE_ENV production

parent 0b06c0d2
......@@ -265,7 +265,8 @@ if (isTestEnv) {
} else if (process.argv.some(arg => arg.includes('webpack-dev-server'))) {
staging = 'dev'
} else if (process.env.NODE_ENV === 'production') {
staging = 'prod'
// on laisse préprod si c'est ça qui était dans localConfig
staging = config.application.staging === 'preprod' ? 'preprod' : 'prod'
} else if (knownStagings.includes(process.env.NODE_ENV)) {
staging = process.env.NODE_ENV
} else if (knownStagings.includes(config.application.staging)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment