build: remove sentry integration

This commit is contained in:
kangfenmao
2025-04-24 11:48:53 +08:00
parent 7a7b24fe2f
commit 25b1e309ed
12 changed files with 16 additions and 1160 deletions
-12
View File
@@ -1,12 +0,0 @@
import { configManager } from '@main/services/ConfigManager'
import * as Sentry from '@sentry/electron/main'
import { app } from 'electron'
export function initSentry() {
if (configManager.getEnableDataCollection()) {
Sentry.init({
dsn: 'https://194ceab3bd44e686bd3ebda9de3c20fd@o4509184559218688.ingest.us.sentry.io/4509184569442304',
environment: app.isPackaged ? 'production' : 'development'
})
}
}