Skip to content

Commit 2ca6d24

Browse files
committed
prevent webpack plugin from injecting release file into excluded routes
1 parent 62db021 commit 2ca6d24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nextjs/src/config/webpack.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ export function getWebpackPluginOptions(
471471
configFile: hasSentryProperties ? 'sentry.properties' : undefined,
472472
stripPrefix: ['webpack://_N_E/'],
473473
urlPrefix,
474-
entries: (entryPointName: string) => shouldAddSentryToEntryPoint(entryPointName, isServer),
474+
entries: (entryPointName: string) =>
475+
shouldAddSentryToEntryPoint(entryPointName, isServer, userSentryOptions.excludeServerRoutes),
475476
release: getSentryRelease(buildId),
476477
dryRun: isDev,
477478
});

0 commit comments

Comments
 (0)