ignore sentry "Non-error exception"

This commit is contained in:
Zai Shi 2024-12-18 10:57:33 -08:00
parent 1b7a9d6b59
commit fcf92e04e3

View File

@ -14,6 +14,13 @@ Sentry.init({
enabled: process.env.NODE_ENV !== "development" && !process.env.CI,
// https://forum.sentry.io/t/unhandledrejection-non-error-promise-rejection-captured-with-value/14062/13
// https://github.com/getsentry/sentry-javascript/issues/3440#issuecomment-865857552
ignoreErrors:[
"Non-Error exception captured",
"Non-Error promise rejection captured"
],
// You can remove this option if you're not planning to use the Sentry Session Replay feature:
integrations: [
Sentry.replayIntegration({