diff --git a/packages/nextjs/src/config/withSentryConfig.ts b/packages/nextjs/src/config/withSentryConfig.ts index b94ce6187f97..b185cc3d3211 100644 --- a/packages/nextjs/src/config/withSentryConfig.ts +++ b/packages/nextjs/src/config/withSentryConfig.ts @@ -432,7 +432,7 @@ function getInstrumentationClientFileContents(): string | void { ['src', 'instrumentation-client.ts'], ['src', 'instrumentation-client.js'], ['instrumentation-client.ts'], - ['instrumentation-client.ts'], + ['instrumentation-client.js'], ]; for (const pathSegments of potentialInstrumentationClientFileLocations) {