Skip to content

Commit 0086d69

Browse files
author
Luca Forstner
committed
.
1 parent 68f6654 commit 0086d69

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
@@ -341,7 +341,7 @@ export function constructWebpackConfigFunction(
341341
newConfig.entry = async () => addSentryToClientEntryProperty(origEntryProperty, buildContext);
342342

343343
const clientSentryConfigFileName = getClientSentryConfigFile(projectDir);
344-
if (clientSentryConfigFileName?.includes('sentry.client.config')) {
344+
if (clientSentryConfigFileName) {
345345
// eslint-disable-next-line no-console
346346
console.warn(
347347
`[@sentry/nextjs] DEPRECATION WARNING: It is recommended renaming your \`${clientSentryConfigFileName}\` file, or moving its content to \`instrumentation-client.ts\`. When using Turbopack \`${clientSentryConfigFileName}\` will no longer work. Read more about the \`instrumentation-client.ts\` file: https://nextjs.org/docs/app/api-reference/config/next-config-js/clientInstrumentationHook`,

0 commit comments

Comments
 (0)