Monitoring
Sentry for errors and performance, error boundaries, and release tracking.
Setup
Add the Sentry Next.js SDK, DSN environment variables, and upload source maps in CI.
Error boundaries
Wrap risky client surfaces with error boundaries that report to Sentry with user and route context.
Performance
Enable tracing samples appropriate to traffic volume; avoid capturing full PII in breadcrumbs.
Tag releases with git SHA so regressions map to deploys.