fix: checking process.env.NODE_ENV #2492

Merged
alexm merged 5 commits from 7421-fix_checking_NODE_ENV into dev 2024-05-21 13:22:03 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 1f2017c272 - Show all commits

View File

@ -1,3 +1,3 @@
module.exports = (localAsProduction = true) => { module.exports = (localAsProduction = true) => {
if ((!process.env.NODE_ENV && localAsProduction) || process.env.NODE_ENV == 'production') return true; return (!process.env.NODE_ENV && localAsProduction) || process.env.NODE_ENV == 'production';
}; };