summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/desktop/src')
-rw-r--r--packages/desktop/src/env.d.ts9
-rw-r--r--packages/desktop/src/index.tsx1
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/desktop/src/env.d.ts b/packages/desktop/src/env.d.ts
new file mode 100644
index 000000000..aff016842
--- /dev/null
+++ b/packages/desktop/src/env.d.ts
@@ -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
+}
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index a760cb409..1a0da014d 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -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"