Skip to content

Commit

Permalink
Merge pull request #610 from UTDNebula/internal/sentry-tunnel
Browse files Browse the repository at this point in the history
internal: Add adblock bypass to Sentry
  • Loading branch information
akevinge authored Jul 21, 2023
2 parents 2074cd6 + a697388 commit f146743
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ const nextConfig = withBundleAnalyzer({
},
});

module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourcemaps: false });
module.exports = withSentryConfig(
nextConfig,
{ silent: true },
// tunnelRoute set to bypass adblockers.
// See: https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#configure-tunneling-to-avoid-ad-blockers.
{ hideSourcemaps: false, tunnelRoute: '/sentry-tunnel' },
);

0 comments on commit f146743

Please sign in to comment.