Deployment

Setup

NextAuth & MongoDB

  • Commit your code and push to a private repo on GitHub.
  • Use Vercel to create a new project based on the GitHub repo.
  • Set the right environment variables before deploying as the .env.local is not committed.
  • Make sure NEXTAUTH_URL matches your domain name for auth features to work. Change NEXTAUTH_SECRET to anything else.

  • Using Stripe? Follow the Stripe Production Checklist.

Supabase

  • Commit your code and push to a private repo on GitHub.
  • Use Vercel to create a new project based on the GitHub repo.
  • Set the right environment variables before deploying as the .env.local is not committed.
  • Using Google Oauth? Follow the Stripe Production Checklist.
  • Using Stripe? Follow the Stripe Production Checklist.

Cache Issues

If you are having issues with the cache, for example opengraph images not showing up, you need to redeploy the project without build cache.