mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
#169: separate environment option for sentry logging
This commit is contained in:
parent
f9ae7053d0
commit
0f4366385e
@ -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) => {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user