In plain words
Production is the live app real users touch; staging is a copy with its own database where you try changes first, so mistakes land somewhere harmless.
Where you see it
Vercel gives every branch a preview link, which is a quick kind of staging. The catch is that previews often use the same Supabase project as production, so testing "delete account" on a preview deletes a real account.
What goes wrong
- Staging and production sharing a database
Test orders, fake users and deleted rows all land in real data. Give staging its own Supabase project.
- Live payment keys outside production
With sk_live_ on staging, your next test checkout charges a real card. Use Stripe's test keys everywhere else.
- Staging that drifts from production
When staging is missing last month's migrations, a change can pass there and still fail live. Run the same migrations, in the same order, on both.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYou test "delete my account" on a Vercel preview link, and a real customer's account disappears. Why?