From 5ebcb21da483be24744db54bed6c020a3fe9ba6d Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 18 Nov 2024 17:47:44 -0500 Subject: [PATCH] Avoid sending sentries for network errors --- hugo/src/js/sentry.js | 1 + 1 file changed, 1 insertion(+) diff --git a/hugo/src/js/sentry.js b/hugo/src/js/sentry.js index e03c41d3..1306a536 100644 --- a/hugo/src/js/sentry.js +++ b/hugo/src/js/sentry.js @@ -8,6 +8,7 @@ async function handleException(errorEvent) { Sentry.init({ dsn: 'https://86c7b8de1ad3cf69978fdf409a776f28@o510231.ingest.us.sentry.io/4508265848897536', enabled: process.env.NODE_ENV === 'production' || process.env.ENABLE_SENTRY, + ignoreErrors: ['Network Error'], }); } Sentry.captureException(errorEvent);