From a79664c9b5089949bf1ea146e6f807b541348ba9 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Wed, 18 Jun 2025 11:27:58 +0200 Subject: [PATCH] fix(nextjs): Fix lookup of `instrumentation-client.js` file --- packages/nextjs/src/config/withSentryConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {