This is a general question though I haven't found where I am going wrong. Using Windows Server with Azures kudu stand alone to host a local project. Also using React, Webpack, Redux
Windows environment var is set to production Package.json has set NODE_ENV=production && etc.. for both start and build scripts web.config has iisnode node_env=production
running node I get the node_env is indeed production However when I build it's giving me the development build when I do something like
if (process.env.NODE_ENV === 'production') {
module.exports = require('./buildProduction.js')
}
else {
module.exports = require('./buildDevelopment.js')
}
What gives?