You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(nextjs): Handle Spotlight auto-enablement in Next.js client SDK
The browser SDK's Spotlight auto-detection is wrapped in rollup-include-development-only,
which strips it from production builds. Since users install production builds from npm,
the Next.js SDK needs to handle Spotlight auto-enablement explicitly.
This moves the Spotlight env var detection from the browser SDK to the Next.js client SDK,
which reads the injected NEXT_PUBLIC_SENTRY_SPOTLIGHT value from globalThis and adds the
Spotlight integration when appropriate.
This also avoids the issue where CI sets VITE_SENTRY_SPOTLIGHT=true globally, which was
accidentally enabling Spotlight in all test apps and potentially causing timing issues.
0 commit comments