Use BOX_ENV instead of NODE_ENV
Let NODE_ENV be used by node modules and always be set to production Fixes #453
This commit is contained in:
@@ -11,8 +11,8 @@ exports = module.exports = {
|
||||
set: set,
|
||||
|
||||
// ifdefs to check environment
|
||||
CLOUDRON: process.env.NODE_ENV === 'cloudron',
|
||||
TEST: process.env.NODE_ENV === 'test',
|
||||
CLOUDRON: process.env.BOX_ENV === 'cloudron',
|
||||
TEST: process.env.BOX_ENV === 'test',
|
||||
|
||||
// convenience getters
|
||||
apiServerOrigin: apiServerOrigin,
|
||||
|
||||
Reference in New Issue
Block a user