We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c17b008 commit fdb263eCopy full SHA for fdb263e
packages/nextjs/src/config/webpack.ts
@@ -952,7 +952,7 @@ function addValueInjectionLoader(
952
SENTRY_RELEASE: buildContext.dev
953
? undefined
954
: { id: sentryWebpackPluginOptions.release ?? getSentryRelease(buildContext.buildId) },
955
- __sentryBasePath: userNextConfig.basePath,
+ __sentryBasePath: buildContext.dev ? userNextConfig.basePath : undefined,
956
};
957
958
const serverValues = {
0 commit comments