14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
|
|
const dsn = process.env.NEXT_PUBLIC_GLITCHTIP_DSN;
|
|
if (dsn) {
|
|
Sentry.init({
|
|
dsn,
|
|
environment: process.env.NEXT_PUBLIC_ENVIRONMENT ?? "development",
|
|
tracesSampleRate: 0.05,
|
|
// GlitchTip does not support Session Replay — disable explicitly
|
|
replaysSessionSampleRate: 0,
|
|
replaysOnErrorSampleRate: 0,
|
|
integrations: [],
|
|
});
|
|
}
|