Debugging Flow
Your feature works – now make sure it's solid before (and after) you ship. Most problems come down to the same few checks, and Claude can run them and fix what it finds. This is the loop to reach for whenever something breaks.
Type check → fix · Lint → fix · Build → fix. Claude often does this on its own, but it's worth knowing – running these three in order clears the large majority of issues.
1. Run the fix-it loop
Ask Claude to run the three checks in order and fix as it goes.
Outcome: Types, lint, and the production build are all clean.
2. Ship it and verify in production
The most common problem that appears in production but not on your machine is a missing environment variable on Vercel – your app works locally but the deployed version can't reach a service because its key isn't set. You'll learn how environment keys are managed (stored on Vercel, pulled down locally) when you set up your database in the next level. For now, just remember: if it works locally but breaks live, check your Vercel environment variables first.
Outcome: Your feature is deployed and verified live in production.