- Added Sentry client, server, and edge configurations for enhanced error monitoring. - Updated `.env.example` and `docker-compose` to include `NEXT_PUBLIC_SENTRY_DSN`. - Modified `next.config.ts` to use `withSentryConfig` for source map uploads. - Installed `@sentry/nextjs` as a dependency and updated `pnpm-lock.yaml`.
12 lines
217 B
TypeScript
12 lines
217 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
|
|
// Ajustez ces valeurs en production
|
|
tracesSampleRate: 1.0,
|
|
|
|
// Protection PII
|
|
sendDefaultPii: false,
|
|
});
|