8000 fix(nextjs): Fix legacy configuration method detection for emitting w… · benjick/sentry-javascript@85db0de · GitHub
[go: up one dir, main page]

Skip to content

Commit 85db0de

Browse files
authored
fix(nextjs): Fix legacy configuration method detection for emitting warning (getsentry#12136)
1 parent ad4e9f7 commit 85db0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function warnAboutDeprecatedConfigFiles(projectDir: string, platform: 'server' |
420420

421421
return (
422422
instrumentationHookContent.includes('@sentry/') ||
423-
instrumentationHookContent.match(/sentry\.(server|edge)\.config\.(ts|js)/)
423+
instrumentationHookContent.match(/sentry\.(server|edge)\.config(\.(ts|js))?/)
424424
);
425425
} catch (e) {
426426
return false;

0 commit comments

Comments
 (0)
0