Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Strictly filter sentry errors (#1147)
sarayourfriend234b18b81ea7
diff --git a/src/utils/sentry-config.ts b/src/utils/sentry-config.tsindex 279729b85..912ca9093 100644--- a/src/utils/sentry-config.ts+++ b/src/utils/sentry-config.ts@@ -13,4 +13,20 @@ export const sentryConfig: ModuleConfiguration = {'https://[email protected]/5799642',disabled: !isProd,lazy: true,+ clientConfig: {+ // Only allow errors that come from an actual openverse.engineering subdomain+ allowUrls: [/^https?:\/\/(.*)\.openverse\.engineering/],+ },+ config: {+ ignoreErrors: [+ // Ignore browser extension errors+ /window\.bannerNight/,++ // Ignore errant focus-trap-vue errors+ /`initialFocus` did not return a node/,++ // Cloudflare+ /sendBeacon/,+ ],+ },}