Files
klz-cables.com/sentry.client.config.ts
Marc Mintel 6624cfc3ad
All checks were successful
Build & Deploy KLZ Cables / build-and-deploy (push) Successful in 3m37s
sentry
2026-01-27 10:31:36 +01:00

16 lines
408 B
TypeScript

import * as Sentry from '@sentry/nextjs';
const dsn = process.env.SENTRY_DSN;
Sentry.init({
dsn,
enabled: Boolean(dsn),
tracesSampleRate: 0,
// Ensure 500 errors are always captured
debug: process.env.NODE_ENV === 'development',
// AdjustingreplaysOnErrorSampleRate to 1.0 to capture 100% of errors with replays if enabled
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
});