Skip to content

Latest commit

 

History

History
89 lines (70 loc) · 2.37 KB

File metadata and controls

89 lines (70 loc) · 2.37 KB

Vercel Deployment Checklist

✅ Pre-Deployment Checklist

1. Repository Setup

  • Code pushed to GitHub
  • Repository is public or Vercel has access
  • All files committed (including vercel.json)

2. Environment Variables Ready

  • Supabase URL: NEXT_PUBLIC_SUPABASE_URL
  • Supabase Anon Key: NEXT_PUBLIC_SUPABASE_ANON_KEY
  • Supabase Service Key: SUPABASE_SERVICE_ROLE_KEY
  • NextAuth URL: NEXTAUTH_URL (will be your Vercel URL)
  • NextAuth Secret: NEXTAUTH_SECRET (32+ random characters)

3. Database Setup

  • Supabase project is active
  • Database schema applied (database-schema.sql)
  • RLS (Row Level Security) is enabled
  • Test data can be created

🚀 Deployment Steps

Option A: One-Click Deploy (Fastest)

  1. Click the "Deploy to Vercel" button in README
  2. Connect GitHub account
  3. Configure environment variables
  4. Deploy!

Option B: Manual Deploy

  1. Go to vercel.com
  2. Sign in with GitHub
  3. Click "New Project"
  4. Import poll-application repository
  5. Configure environment variables
  6. Deploy

🔧 Post-Deployment Testing

Critical Features to Test:

  • Home page loads
  • Sign up works
  • Sign in works
  • Dashboard displays
  • Create poll works
  • Voting works
  • Poll results display
  • User can sign out

Performance Checks:

  • Page load speed < 3 seconds
  • Mobile responsive design
  • No console errors
  • All images load properly

🐛 Troubleshooting

If Build Fails:

  1. Check environment variables are set correctly
  2. Verify all dependencies are in package.json
  3. Check build logs in Vercel dashboard
  4. Ensure no TypeScript errors

If App Doesn't Work:

  1. Check browser console for errors
  2. Verify Supabase connection
  3. Test authentication flow
  4. Check database permissions

📝 Final Steps

  • Test the deployed application thoroughly
  • Update README with live demo URL
  • Share your deployed app!

🔗 Quick Links


Need Help?

  • Check DEPLOYMENT.md for detailed instructions
  • Review Vercel documentation
  • Create a GitHub issue for bugs