Skip to content

Commit e5409e6

Browse files
committed
debug: Log spotlight config detection in withSentryConfig
1 parent c23f1d7 commit e5409e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,14 @@ function getFinalConfigObject(
355355
const spotlightConfig =
356356
incomingUserNextConfigObject.env?.NEXT_PUBLIC_SENTRY_SPOTLIGHT ?? process.env.NEXT_PUBLIC_SENTRY_SPOTLIGHT;
357357

358+
// Debug: Log spotlight config detection
359+
// eslint-disable-next-line no-console
360+
console.log('[@sentry/nextjs] Spotlight config detection:', {
361+
fromNextConfigEnv: incomingUserNextConfigObject.env?.NEXT_PUBLIC_SENTRY_SPOTLIGHT,
362+
fromProcessEnv: process.env.NEXT_PUBLIC_SENTRY_SPOTLIGHT,
363+
resolved: spotlightConfig,
364+
});
365+
358366
let turboPackConfig: TurbopackOptions | undefined;
359367

360368
// IMPORTANT: Always construct turbopack config if the Next.js version supports it,

0 commit comments

Comments
 (0)