Get your API key

Intermediate · 5 lessons · 44 min

Deploy properly: previews, domains and rollbacks

Your app is live. Now test every change on a preview, give it a real domain with HTTPS, and undo a bad deploy in one click.

Who it's for

You already put an app on Vercel once (for example in Build your first web MVP) and now real people, a client or your own business depend on it.

What you'll build

A coaching institute fee tracker on its own .in domain, with previews for every change, separate test and live settings, a reusable deploy checklist and a filled-in DNS record sheet.

Why this course

The second deploy is where beginners get stuck: environment variables that work locally but are undefined on Vercel, logins that redirect to localhost:3000 in production, and custom domains stuck on "Invalid Configuration" even though the records look right. These questions fill the Vercel community forum and Supabase discussions.

Take first: Build your first web MVP, Safe vibe coding

Lessons in this course

  1. 1Preview first, production secondBranches get their own preview link; only main goes live. Test on the preview, then merge. 8 min Free
  2. 2Environment variables for each environmentTest values for previews, live values for production, public prefixes baked in at build time, and why you redeploy. 8 min Log in to open
  3. 3Remove localhost and fix login redirectsFind hard-coded URLs, set Supabase Site URL and Redirect URLs, match Google redirect URIs exactly, avoid mixed content. 8 min Log in to open
  4. 4Custom domain, DNS and HTTPSBuy a .in domain, add A and CNAME records from Vercel, check them with nslookup or dig, and get HTTPS for free. 10 min Log in to open
  5. 5Logs, rollbacks and common deploy errorsBuild logs vs runtime logs, Instant Rollback, the six errors that break most deploys, and your deploy checklist. 10 min Log in to open
Next upTesting with AIMake the AI prove its work. Plain-English rules become automatic tests that catch what breaks before your users do.