mirror of
https://github.com/appwrite/console.git
synced 2026-04-07 19:17:46 +00:00
15 lines
491 B
TypeScript
15 lines
491 B
TypeScript
import { sequence } from '@sveltejs/kit/hooks';
|
|
import { handleErrorWithSentry, sentryHandle } from '@sentry/sveltekit';
|
|
import * as Sentry from '@sentry/sveltekit';
|
|
import { isCloud, isProd } from '$lib/system';
|
|
|
|
Sentry.init({
|
|
enabled: isCloud && isProd,
|
|
dsn: 'https://c7ce178bdedd486480317b72f282fd39@o1063647.ingest.us.sentry.io/4504158071422976',
|
|
tracesSampleRate: 1.0
|
|
});
|
|
|
|
export const handle = sequence(sentryHandle());
|
|
|
|
export const handleError = handleErrorWithSentry();
|