salix/loopback/server/boot/isProduction.js

4 lines
149 B
JavaScript
Raw Normal View History

2024-05-21 11:50:45 +00:00
module.exports = (localAsProduction = true) => {
2024-05-21 12:03:13 +00:00
return (!process.env.NODE_ENV && localAsProduction) || process.env.NODE_ENV == 'production';
2024-05-21 11:50:45 +00:00
};