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) => {
|
integrations: (integrations) => {
|
||||||
return integrations.filter(
|
return integrations.filter(
|
||||||
(i) =>
|
(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