desktop: sentry integration (#15300)

Co-authored-by: Jay V <air@live.ca>
This commit is contained in:
Brendan Allan
2026-05-01 11:56:31 +08:00
committed by GitHub
parent c68c33d4fe
commit 163290bcf0
34 changed files with 291 additions and 23 deletions
+9
View File
@@ -0,0 +1,9 @@
interface ImportMetaEnv {
readonly VITE_SENTRY_DSN?: string
readonly VITE_SENTRY_ENVIRONMENT?: string
readonly VITE_SENTRY_RELEASE?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
+1
View File
@@ -14,6 +14,7 @@ import {
ServerConnection,
useCommand,
} from "@opencode-ai/app"
import * as Sentry from "@sentry/solid"
import type { AsyncStorage } from "@solid-primitives/storage"
import { getCurrentWindow } from "@tauri-apps/api/window"
import { readImage } from "@tauri-apps/plugin-clipboard-manager"