Monitoring helps you see production errors after your app is live. Sentry is optional in this repo and only turns on when you provide a DSN. If you skip it, the app works perfectly fine.
What Sentry Does for You
- See frontend and backend errors in one place
- Inspect full stack traces
- Track runtime problems after deployment
- Catch issues before your users report them (or don’t report them)
Get It Running
Create a Sentry project
Sign up at sentry.io and create a new project for your app.
Add the DSN
Copy your project DSN and add it to You can also set the server-side DSN (falls back to
.env.local:NEXT_PUBLIC_SENTRY_DSN if missing):Verify It Works
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 dashboard
Added the DSN but no events show up
Added the DSN but no events show up
Did you restart the app or redeploy? Sentry won’t initialize until the new env vars are loaded.
Stack traces are minified and unreadable
Stack traces are minified and unreadable
You need the source map env vars (
SENTRY_AUTH_TOKEN, SENTRY_ORG, SENTRY_PROJECT) for readable production stack traces.Events appear under the wrong project
Events appear under the wrong project
Double-check that your DSN matches the correct Sentry project. Each project has a unique DSN.

