// PBI/v1-readiness item 2: Sentry error-monitoring (client runtime).
// Geen Replay-integratie — overkill voor MVP, vereist eigen privacy-review.

import * as Sentry from '@sentry/nextjs'

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  tracesSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1.0,
  sendDefaultPii: false,
  enabled: !!process.env.NEXT_PUBLIC_SENTRY_DSN,
  debug: false,
})

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart
