* feat: integrate sentry error reporting * feat: report logger errors to sentry with 30s log context
13 lines
260 B
TypeScript
13 lines
260 B
TypeScript
import * as Sentry from '@sentry/electron/renderer';
|
|
|
|
if (window.electron.SENTRY_ENABLED) {
|
|
// Defer initialization to prioritize initial render
|
|
setTimeout(() => {
|
|
Sentry.init({
|
|
dsn: process.env.SENTRY_DSN,
|
|
});
|
|
}, 2000);
|
|
}
|
|
|
|
import '@/App';
|