Files
klz-cables.com/sentry.server.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

15 lines
388 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
// Next.js 14+ with App Router handles many errors automatically,
// but we want to be explicit about capturing all unhandled exceptions.
debug: process.env.NODE_ENV === 'development',
});