File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments