Skip to content

Commit cd35be1

Browse files
committed
fix: update sentry next config
1 parent 31ed542 commit cd35be1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

apps/web/instrumentation-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Sentry.init({
1212
tracesSampleRate: 0.1
1313
})
1414

15+
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart
16+
1517
initBotId({
1618
protect: [
1719
{ path: '/api/waitlist', method: 'POST' },

apps/web/next.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,15 @@ const sentryWrappedConfig =
268268
process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_ORG && process.env.SENTRY_PROJECT
269269
? withSentryConfig(botProtectedConfig, {
270270
authToken: process.env.SENTRY_AUTH_TOKEN,
271-
disableLogger: true,
272271
org: process.env.SENTRY_ORG,
273272
project: process.env.SENTRY_PROJECT,
274273
silent: !process.env.CI,
275274
tunnelRoute: '/monitoring',
275+
webpack: {
276+
treeshake: {
277+
removeDebugLogging: true
278+
}
279+
},
276280
widenClientFileUpload: true
277281
})
278282
: botProtectedConfig

0 commit comments

Comments
 (0)