Skip to content

Commit fdb263e

Browse files
authored
fix(nextjs): Only inject basepath in dev mode (#9465)
1 parent c17b008 commit fdb263e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ function addValueInjectionLoader(
952952
SENTRY_RELEASE: buildContext.dev
953953
? undefined
954954
: { id: sentryWebpackPluginOptions.release ?? getSentryRelease(buildContext.buildId) },
955-
__sentryBasePath: userNextConfig.basePath,
955+
__sentryBasePath: buildContext.dev ? userNextConfig.basePath : undefined,
956956
};
957957

958958
const serverValues = {

0 commit comments

Comments
 (0)