← All guides

Catch errors: Sentry

Send errors into your inbox, where they're labeled and can go straight to the coding agent for a fix.

The video for this guide is coming soon. The written steps below cover everything.

Sign up for Sentry ↗Free to start

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

  1. Create a Next.js project in Sentry and copy the DSN into NEXT_PUBLIC_SENTRY_DSN.
  2. 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 as SENTRY_WEBHOOK_SECRET.
  3. 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

Some links are affiliate links: signing up through them may earn us a commission at no extra cost to you.

Next: Launch ads: Meta and the lane launcher →