Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
1 changed files with
1 additions and
1 deletions
-
src/globals.js
|
|
@ -2,6 +2,6 @@ |
|
|
|
|
|
|
|
const { NODE_ENV } = process.env |
|
|
|
|
|
|
|
global.__ENV__ = NODE_ENV === 'production' ? NODE_ENV : 'development' |
|
|
|
global.__ENV__ = NODE_ENV === 'development' ? NODE_ENV : 'production' |
|
|
|
global.__DEV__ = global.__ENV__ === 'development' |
|
|
|
global.__PROD__ = !global.__DEV__ |
|
|
|