Monitoring helps you see production errors after your app is live. In this
repo, Sentry is optional and only turns on when you provide a DSN.
What Sentry Does
Sentry can help you:- see frontend and backend errors
- inspect stack traces
- track runtime problems after deployment
Minimum Setup
This is enough to enable Sentry:SENTRY_DSN is missing, the repo can fall back to NEXT_PUBLIC_SENTRY_DSN.
Optional Build-Time Source Maps
These are only needed if you want nicer production stack traces:Optional Runtime Tuning
Setup Flow
- Create a Sentry project
- Copy the DSN
- Add it to
.env.localor production env vars - Restart the app locally or redeploy in production
- Trigger a test error and confirm Sentry receives it
Verification Checklist
Your Sentry setup is working if:- the app still builds normally
- Sentry initializes when a DSN is set
- a test error appears in your Sentry project
Common Mistakes
- adding the DSN but forgetting to redeploy
- expecting source maps without setting the source map env vars
- using the wrong Sentry project

