mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-16 01:22:58 +00:00
fix(desktop): suppress browser API Sentry errors in prod (#25972)
This commit is contained in:
@@ -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")
|
||||
),
|
||||
)
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user