<aside> 💡 This page gives you Sentry, the error-tracking tool, and what it does for your app, so you know whether the app works.

</aside>

The stack

How to set it up

  1. Create a free account at Sentry (sentry.io) and make a new project for your app.
  2. Copy the connection details Sentry gives you for that project.
  3. Ask ChatGPT (Codex) or Claude Code to add the Sentry code to your app, using those details.
  4. Deploy the app to Vercel with the Sentry details added as environment variables in your Vercel project settings.
  5. Set up Sentry to watch your live site address, so it can tell you when the site is no longer reachable.
  6. Test it: stop the project on Vercel and check that Sentry reports the site as unreachable.
  7. Open Sentry after each release and read what it has logged.

<aside> ⚠️ Watch out: testing your app is not a substitute for seeing errors. Do the shutdown test in step 6 on a project you can safely stop, so you know the alert works before you need it.

</aside>

Prompt to build your own

You are helping me add error tracking to my web app using Sentry.
My app: <describe the app and its framework, for example a Next.js site>.
Hosting: <Vercel, or your host>.
I use: <ChatGPT (Codex) or Claude Code> and I have a Sentry account with a project already created.
Please:
1. Add the Sentry SDK to the app so unhandled errors are logged to Sentry.
2. Read the Sentry connection details from environment variables called <your variable name>, and never hard-code them.
3. Show me where to add those variables in <my host> settings.
4. Add one deliberate test error I can trigger and then remove.
5. Explain how to set up Sentry to watch <my live site address> and alert me when it is no longer reachable.
6. Give me a short checklist to test it, including stopping the deployment and confirming Sentry reports it.
Keep the changes small, explain each file you touch, and tell me what to check in Sentry afterwards.

Watch the video · More free guides · Follow @manrajtalks for the next one.