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,
tracesSampleRate: 1.0,
2023-04-13 05:18:41 +03:00
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
integrations: [new Sentry.Replay()],
2023-03-28 22:06:16 +03:00
});