fix(env): Use NODE_ENV to enable/disable opbeat frontend
This commit is contained in:
@@ -53,11 +53,11 @@ module.exports = {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: JSON.stringify(__DEV__ ? 'development' : 'production')
|
||||
NODE_ENV: JSON.stringify(__DEV__ ? 'development' : 'production'),
|
||||
__OPBEAT__ORG_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_ORG_ID),
|
||||
__OPBEAT__APP_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_APP_ID)
|
||||
},
|
||||
__DEVTOOLS__: !__DEV__,
|
||||
__OPBEAT__ORG_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_ORG_ID),
|
||||
__OPBEAT__APP_ID: JSON.stringify(process.env.OPBEAT_FRONTEND_APP_ID)
|
||||
__DEVTOOLS__: !__DEV__
|
||||
}),
|
||||
// Use browser version of visionmedia-debug
|
||||
new webpack.NormalModuleReplacementPlugin(
|
||||
|
Reference in New Issue
Block a user