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
Copy file name to clipboardExpand all lines: src/router.tsx
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,47 @@ export function getRouter() {
58
58
// Session Replay
59
59
replaysSessionSampleRate: 0.1,// This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
60
60
replaysOnErrorSampleRate: 1.0,// If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
61
+
beforeSend(event,hint){
62
+
// Filter out Publift Fuse and ad script errors that are expected
63
+
// These errors occur in iOS Safari and during navigation due to strict Same-Origin Policy
64
+
// and race conditions with ad script initialization
65
+
consterror=hint.originalException
66
+
consterrorMessage=
67
+
typeoferror==='string'
68
+
? error
69
+
: errorinstanceofError
70
+
? error.message
71
+
: ''
72
+
73
+
// Check if this is an ad script error we want to suppress
0 commit comments