Skip to content

Commit

Permalink
feat(nextjs): Add note about tunnelRoute and Next.js middleware inc…
Browse files Browse the repository at this point in the history
…ompatibility (#544)
  • Loading branch information
lforst authored Mar 5, 2024
1 parent b60907c commit f54094d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Add note about `tunnelRoute` and Next.js middleware incompatibility (#544)

## 3.20.5

- fix: Update `@clack/core` to fix selection error on Windows (#539)
Expand Down
4 changes: 3 additions & 1 deletion src/nextjs/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export function getNextjsSentryBuildOptionsTemplate(): string {
// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: "/monitoring",
// Hides source maps from generated client bundles
Expand Down

0 comments on commit f54094d

Please sign in to comment.