We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
basePath
tunnelRoute
1 parent c55943f commit dae3475Copy full SHA for dae3475
packages/nextjs/src/config/webpack.ts
@@ -865,7 +865,10 @@ function addValueInjectionLoader(
865
866
const isomorphicValues = {
867
// `rewritesTunnel` set by the user in Next.js config
868
- __sentryRewritesTunnelPath__: userSentryOptions.tunnelRoute,
+ __sentryRewritesTunnelPath__:
869
+ userSentryOptions.tunnelRoute !== undefined
870
+ ? `${userNextConfig.basePath ?? ''}${userSentryOptions.tunnelRoute}`
871
+ : undefined,
872
873
// The webpack plugin's release injection breaks the `app` directory so we inject the release manually here instead.
874
// Having a release defined in dev-mode spams releases in Sentry so we only set one in non-dev mode
0 commit comments