Skip to content

Commit

Permalink
revert(sentry): tunnel frontend errors through backend
Browse files Browse the repository at this point in the history
This isn't the reason frontend errors are not being sent to Sentry.
  • Loading branch information
geclos committed Nov 18, 2024
1 parent 218505d commit 9fd1375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const nextConfig = {

let config
if (process.env.SENTRY_ORG && process.env.SENTRY_PROJECT) {
console.log('configuring sentry...')

config = withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
Expand All @@ -63,7 +65,7 @@ if (process.env.SENTRY_ORG && process.env.SENTRY_PROJECT) {
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
// tunnelRoute: '/monitoring',
tunnelRoute: '/monitoring',

// Hides source maps from generated client bundles
hideSourceMaps: false,
Expand Down

0 comments on commit 9fd1375

Please sign in to comment.