We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed76ec8 commit ec73021Copy full SHA for ec73021
packages/nextjs/src/client/index.ts
@@ -44,7 +44,9 @@ export function init(options: BrowserOptions): Client | undefined {
44
45
// Remove cached trace meta tags for ISR/SSG pages before initializing
46
// This prevents the browser tracing integration from using stale trace IDs
47
- removeIsrSsgTraceMetaTags();
+ if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {
48
+ removeIsrSsgTraceMetaTags();
49
+ }
50
51
const opts = {
52
environment: getVercelEnv(true) || process.env.NODE_ENV,
0 commit comments