Skip to content

Commit

Permalink
Avoid sending sentries for network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akellbl4 authored and paskal committed Nov 18, 2024
1 parent eba27c9 commit 5ebcb21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugo/src/js/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ async function handleException(errorEvent) {
Sentry.init({
dsn: 'https://[email protected]/4508265848897536',
enabled: process.env.NODE_ENV === 'production' || process.env.ENABLE_SENTRY,
ignoreErrors: ['Network Error'],
});
}
Sentry.captureException(errorEvent);
Expand Down

0 comments on commit 5ebcb21

Please sign in to comment.