refactor: filter sentry errors (#816)

This commit is contained in:
Carlos Valente
2024-03-15 16:13:26 +01:00
committed by GitHub
parent 105f395e6e
commit 118c29e5c2
+1 -1
View File
@@ -42,7 +42,7 @@ Sentry.init({
tracesSampleRate: 0.3,
release: ONTIME_VERSION,
enabled: import.meta.env.PROD,
ignoreErrors: [...sentryRecommendedIgnore, 'Unable to preload CSS', 'Failed to fetch dynamically imported module'],
ignoreErrors: [...sentryRecommendedIgnore, /Unable to preload CSS/i, /dynamically imported module/i],
denyUrls: [/extensions\//i, /^chrome:\/\//i, /^chrome-extension:\/\//i],
});