Skip to content

Commit 91698cf

Browse files
🎨 silence the flood of error about the sz gtm variable (#3873)
1 parent 677e9e6 commit 91698cf

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

web/sentry.edge.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Sentry.init({
1010
environment: process.env.NEXT_PUBLIC_SANITY_DATASET || 'global-development',
1111
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
1212
tracesSampleRate: 1,
13-
13+
//Investigate, but silence the flooding of errors
14+
ignoreErrors: [/Can't find variable: _sz/],
1415
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1516
debug: false,
16-
})
17+
})

web/sentry.sever.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Sentry.init({
1111
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
1212
tracesSampleRate: 1,
1313

14+
ignoreErrors: [/Can't find variable: _sz/],
15+
1416
// Setting this option to true will print useful information to the console while you're setting up Sentry.
1517
debug: false,
1618
})

0 commit comments

Comments
 (0)