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.
1 parent c1341fd commit 709ecceCopy full SHA for 709ecce
packages/nextjs/src/config/webpack.ts
@@ -254,7 +254,7 @@ function checkWebpackPluginOverrides(
254
* @returns `true` if sentry code should be injected, and `false` otherwise
255
*/
256
function shouldAddSentryToEntryPoint(entryPointName: string): boolean {
257
- return entryPointName === 'pages/_app' || entryPointName.includes('pages/api');
+ return entryPointName === 'pages/_app' || entryPointName === 'pages/_error' || entryPointName.includes('pages/api');
258
}
259
260
/**
0 commit comments