Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
sites: updating sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Jan 9, 2024
1 parent 2fb42c1 commit ce2beb6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/apps/site/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = withSentryConfig(
// https://github.com/getsentry/sentry-webpack-plugin#options

// Suppresses source map uploading logs during build
silent: true,
silent: process.env.NODE_ENV == 'production',
org: 'mintter',
project: 'sites',
},
Expand All @@ -162,6 +162,6 @@ module.exports = withSentryConfig(
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
disableLogger: process.env.NODE_ENV == 'development',
},
)
3 changes: 1 addition & 2 deletions frontend/apps/site/sentry.client.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// This file configures the initialization of Sentry on the client.
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
if (process.env.NODE_ENV == 'production') {
Sentry.init({
dsn: process.env.HM_SENTRY_SITE_DSN,
dsn: process.env.HM_SENTRY_DESKTOP_DSN,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/site/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (process.env.NODE_ENV == 'production') {
tracesSampleRate: 1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: true,
debug: false,
})
} else {
console.log(
Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/site/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (process.env.NODE_ENV == 'production') {
tracesSampleRate: 1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: true,
debug: false,
})
} else {
console.log(
Expand Down

0 comments on commit ce2beb6

Please sign in to comment.