Sentry is an optional paid-provider integration. It is not included in the free template. Use this page only if your project has Sentry installed and you have your own provider keys.
When configured, Sentry captures unhandled errors, performance traces, and request context.
When Sentry is configured, the backend error middleware reports unexpected errors automatically. You don't need to add Sentry.captureException() calls manually. Typed application errors (404s, validation failures) are returned to the client but not reported, since they're expected behavior.
When VITE_SENTRY_DSN is set, Sentry is initialized in the app entry point and captures:
Set these env variables:
# Backend
SENTRY_DSN=https://your-dsn@sentry.io/123
# Frontend
VITE_SENTRY_DSN=https://your-dsn@sentry.io/456
Both services check for the presence of their env variables. Leave them empty in your .env file to disable tracking locally.