focus on electron
This commit is contained in:
parent
32b97f7458
commit
8854cbf9fe
6 changed files with 26 additions and 43 deletions
|
|
@ -126,7 +126,7 @@ const platform: Platform = {
|
|||
setDefaultServer: writeDefaultServerUrl,
|
||||
}
|
||||
|
||||
if (!import.meta.env.DEV && import.meta.env.VITE_SENTRY_DSN) {
|
||||
if (import.meta.env.VITE_SENTRY_DSN) {
|
||||
Sentry.init({
|
||||
dsn: import.meta.env.VITE_SENTRY_DSN,
|
||||
environment: import.meta.env.VITE_SENTRY_ENVIRONMENT ?? import.meta.env.MODE,
|
||||
|
|
@ -136,6 +136,12 @@ if (!import.meta.env.DEV && import.meta.env.VITE_SENTRY_DSN) {
|
|||
platform: "web",
|
||||
},
|
||||
},
|
||||
integrations: (integrations) => {
|
||||
return integrations.filter(
|
||||
(i) =>
|
||||
i.name !== "Breadcrumbs" && !(import.meta.env.OPENCODE_CHANNEL === "prod" && i.name === "GlobalHandlers"),
|
||||
)
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue