frontend/src/hooks.client.js
2024-09-19 16:04:35 +02:00

12 lines
331 B
JavaScript

import { handleErrorWithSentry, replayIntegration } from "@sentry/sveltekit";
import * as Sentry from "@sentry/sveltekit";
Sentry.init({
dsn: import.meta.env.VITE_SENTRY,
tracesSampleRate: 1.0,
});
// If you have a custom error handler, pass it to `handleErrorWithSentry`
export const handleError = handleErrorWithSentry();