AFFiNE/apps/web/sentry.client.config.ts

12 lines
266 B
TypeScript
Raw Normal View History

2023-03-28 22:06:16 +03:00
import * as Sentry from '@sentry/nextjs';
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
Sentry.init({
dsn: SENTRY_DSN,
2023-04-24 07:40:59 +03:00
tracesSampleRate: 0.1,
2023-04-13 05:18:41 +03:00
replaysSessionSampleRate: 0.1,
2023-04-24 07:40:59 +03:00
replaysOnErrorSampleRate: 0.1,
2023-04-13 05:18:41 +03:00
integrations: [new Sentry.Replay()],
2023-03-28 22:06:16 +03:00
});