- Standardized indentation and formatting in `sentry.client.config.ts`, `sentry.server.config.ts`, and `sentry.edge.config.ts` for consistency.
23 lines
413 B
TypeScript
23 lines
413 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,
|
|
|
|
// Replay est activé par défaut
|
|
replaysSessionSampleRate: 0.1,
|
|
replaysOnErrorSampleRate: 1.0,
|
|
|
|
integrations: [
|
|
Sentry.replayIntegration({
|
|
maskAllText: true,
|
|
blockAllMedia: true,
|
|
}),
|
|
],
|
|
|
|
// Protection PII
|
|
sendDefaultPii: false,
|
|
});
|