fix(desktop): suppress browser API Sentry errors in prod (#25972)

This commit is contained in:
Brendan Allan 2026-05-06 12:44:40 +08:00 committed by GitHub
parent 89afac3d9d
commit 7c8cf6ca5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,11 @@ if (import.meta.env.VITE_SENTRY_DSN) {
integrations: (integrations) => {
return integrations.filter(
(i) =>
i.name !== "Breadcrumbs" && !(import.meta.env.OPENCODE_CHANNEL === "prod" && i.name === "GlobalHandlers"),
i.name !== "Breadcrumbs" &&
!(
import.meta.env.OPENCODE_CHANNEL === "prod" &&
(i.name === "GlobalHandlers" || i.name === "BrowserApiErrors")
),
)
},
})