mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-28 16:47:05 +03:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
import * as Sentry from '@sentry/nextjs';
|
|
|
|
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN;
|
|
|
|
Sentry.init({
|
|
dsn: SENTRY_DSN,
|
|
tracesSampleRate: 0.1,
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 0.1,
|
|
integrations: [new Sentry.Replay()],
|
|
});
|