Deploy Workflow
Pre-deploy Checklist
- •
npm run typecheck- passes - •
npm run build- passes - •
npm run test- passes (if available) - •No
console.login production code - •Environment variables set in hosting platform
Vercel
Preview:
bash
npx vercel --yes
Production:
bash
npx vercel --prod --yes
Supabase Edge Functions
Single function:
bash
supabase functions deploy [name] --project-ref [ref]
All functions:
bash
supabase functions deploy --project-ref [ref]
Post-deploy
- •Verify production URL loads
- •Test critical user flows
- •Monitor error logs for 5 minutes