#169: separate environment option for sentry logging

This commit is contained in:
SleepWalker 2016-12-06 23:16:34 +02:00
parent f9ae7053d0
commit 0f4366385e
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const logger = {
Raven.config(sentryCdn, {
logger: 'accounts-js-app',
level: 'info',
environment: process.env.NODE_ENV, // eslint-disable-line
environment: process.env.APP_ENV, // eslint-disable-line
release: process.env.__VERSION__, // eslint-disable-line
shouldSendCallback: () => !isTest,
dataCallback: (data) => {

View File

@ -110,6 +110,7 @@ const webpackConfig = {
'window.sentryCdn': config.sentryCdn ? JSON.stringify(config.sentryCdn) : undefined,
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
APP_ENV: JSON.stringify(config.environment || process.env.NODE_ENV),
__VERSION__: JSON.stringify(packageJson.version),
__DEV__: !isProduction,
__TEST__: isTest,