mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-28 16:00:24 +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, {
|
Raven.config(sentryCdn, {
|
||||||
logger: 'accounts-js-app',
|
logger: 'accounts-js-app',
|
||||||
level: 'info',
|
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
|
release: process.env.__VERSION__, // eslint-disable-line
|
||||||
shouldSendCallback: () => !isTest,
|
shouldSendCallback: () => !isTest,
|
||||||
dataCallback: (data) => {
|
dataCallback: (data) => {
|
||||||
|
@ -110,6 +110,7 @@ const webpackConfig = {
|
|||||||
'window.sentryCdn': config.sentryCdn ? JSON.stringify(config.sentryCdn) : undefined,
|
'window.sentryCdn': config.sentryCdn ? JSON.stringify(config.sentryCdn) : undefined,
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
|
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
|
||||||
|
APP_ENV: JSON.stringify(config.environment || process.env.NODE_ENV),
|
||||||
__VERSION__: JSON.stringify(packageJson.version),
|
__VERSION__: JSON.stringify(packageJson.version),
|
||||||
__DEV__: !isProduction,
|
__DEV__: !isProduction,
|
||||||
__TEST__: isTest,
|
__TEST__: isTest,
|
||||||
|
Loading…
Reference in New Issue
Block a user