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 can do either of the following:

  • You can go to Vercel and redeploy without build cache.
  • You can add ?ref=whatever or ?ref=1 to the end of the URL when sharing. Example: https://shipfast.guide/?ref=1.