Skip to content

Commit

Permalink
Specify the environment value when relaying exceptions (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
oo-bldrs committed Jan 20, 2023
1 parent 2a3e723 commit 5737827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const build = {
logLevel: 'info',
define: {
'process.env.SENTRY_DSN': JSON.stringify(process.env.SENTRY_DSN || null),
'process.env.SENTRY_ENVIRONMENT': JSON.stringify(process.env.SENTRY_ENVIRONMENT || process.env.NODE_ENV),
},
plugins: [
progress(),
Expand Down
1 change: 1 addition & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import ApplicationError from './Components/ApplicationError'

Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.SENTRY_ENVIRONMENT,
integrations: [
new BrowserTracing({
routingInstrumentation: Sentry.reactRouterV6Instrumentation(
Expand Down

0 comments on commit 5737827

Please sign in to comment.