Skip to content

Commit 5013714

Browse files
committed
prevent webpack plugin from injecting release file into excluded routes
1 parent 857c80e commit 5013714

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
@@ -475,7 +475,8 @@ export function getWebpackPluginOptions(
475475
configFile: hasSentryProperties ? 'sentry.properties' : undefined,
476476
stripPrefix: ['webpack://_N_E/'],
477477
urlPrefix,
478-
entries: (entryPointName: string) => shouldAddSentryToEntryPoint(entryPointName, isServer),
478+
entries: (entryPointName: string) =>
479+
shouldAddSentryToEntryPoint(entryPointName, isServer, userSentryOptions.excludeServerRoutes),
479480
release: getSentryRelease(buildId),
480481
dryRun: isDev,
481482
});

0 commit comments

Comments
 (0)