Skip to content

Commit

Permalink
fix: hot-fix for capturing exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 9, 2023
1 parent 9a4f595 commit 3fbcac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default withSentryConfig(
// transpile the Sentry code too since we target older browsers in our .browserslistrc
transpileClientSDK: true,
// attempt to circumvent ad blockers
tunnelRoute: '/monitoring',
tunnelRoute: ENABLE_STATIC_EXPORT ? undefined : '/monitoring',
// prevent source map comments in built files
hideSourceMaps: false,
disableLogger: true,
Expand Down
4 changes: 4 additions & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ init({
replaysOnErrorSampleRate: 1.0,
// percentage of sessionsto sample (10%)
replaysSessionSampleRate: 0.1,
// support replaying client sessions to capture unhappy paths
integrations: [new Replay()],
// we only want to capture errors from _next folder on production
// we don't want to capture errors from preview branches here
allowUrls: ['https://nodejs.org/_next'],
});

0 comments on commit 3fbcac7

Please sign in to comment.