Some checks failed
CI / Unit & Component Tests (pull_request) Successful in 6m37s
CI / OCR Service Tests (pull_request) Successful in 41s
CI / Backend Unit Tests (pull_request) Failing after 24m43s
CI / fail2ban Regex (pull_request) Successful in 2m18s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m57s
Adds @sentry/sveltekit to hooks.client.ts and hooks.server.ts. When VITE_SENTRY_DSN is unset (default), Sentry is fully disabled. When set to a GlitchTip JavaScript project DSN, browser exceptions and SSR handleError events are forwarded automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
import * as Sentry from '@sentry/sveltekit';
|
|
|
|
Sentry.init({
|
|
dsn: import.meta.env.VITE_SENTRY_DSN,
|
|
environment: import.meta.env.MODE,
|
|
tracesSampleRate: 1.0,
|
|
enabled: !!import.meta.env.VITE_SENTRY_DSN
|
|
});
|
|
|
|
export const handleError = Sentry.handleErrorWithSentry();
|