Files
CapaKraken/apps/web/sentry.edge.config.ts
Hartmut ba00fd9f55 feat: integrate Sentry error tracking
- @sentry/nextjs installed and configured for client, server, and edge
- Instrumentation hook registers Sentry on Node.js and edge runtimes
- Global error boundary captures unhandled errors to Sentry
- next.config.ts wrapped with withSentryConfig (source maps disabled)
- No-op when NEXT_PUBLIC_SENTRY_DSN is not set

To enable: set NEXT_PUBLIC_SENTRY_DSN in .env.local or .env.production

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-22 18:38:27 +01:00

8 lines
178 B
TypeScript

import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 0.1,
enabled: !!process.env.NEXT_PUBLIC_SENTRY_DSN,
});