What you get
Errors are caught on the server and in the browser, grouped, and filed in your inbox as bugs, ready for the coding agent.
Steps
- Create a Next.js project in Sentry and copy the DSN into
NEXT_PUBLIC_SENTRY_DSN. - Create an internal integration with the webhook
https://YOUR_URL/api/webhooks/sentry, turn on Alert Rule Action, and tick issue. Set its client secret asSENTRY_WEBHOOK_SECRET. - Optional: add an alert rule that sends new issues to the integration.
Check it works
Trigger a test error and watch it arrive in Admin → Inbox labeled as a bug.
What the video covers
- Connecting Sentry
- An error going from the site to the inbox to a fix