Publish To Production

There are a lot of different services to publish a codebase to production. In this guide, we will be using Vercel. For other services, please refer to their corresponding documentation.

1

Committing Changes

git add .
git commit -m "Last commit"
git push
2

Creating a Project + Importing (`.env`) Variables

The NEXT_PUBLIC_SITE_URL should be the URL of your production environment. For instance, for me it would be https://2mrw.dev and not http://localhost:3000.

3

Connecting Your Domain

This step is not detailed because it varies quite a bit between different hosting providers. For instance, as seen in the video below, we were provided with an A and CNAME record that we’ll need to add to our domain provider’s DNS settings.

4

Setting Up Stripe For Production

Please refer to the Stripe How To Use Stripe In Production section inside our Stripe setup guide.

5

Setting Up Google Sign-In For Production

Please refer to the Supabase How To Use Google Sign-In In Production section inside our User authentication setup guide.