import * as Sentry from '@sentry/nuxt' // Init Sentry cote client (SPA). Le DSN provient du build prod (NUXT_PUBLIC_SENTRY_DSN). // Si le DSN est vide (dev), Sentry.init est un no-op : rien n'est envoye. const config = useRuntimeConfig() const dsn = config.public.sentry?.dsn if (dsn) { Sentry.init({ dsn, environment: config.public.sentry?.environment, // Pas d'APM/tracing (hors perimetre ticket #146) : on ne remonte que les erreurs. tracesSampleRate: 0, // Pas de session replay (volume). replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 0, }) }