ProductionPublish Codebase

Publish Codebase

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 🙌

Commiting Changes

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

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

Connecting Your Domain

This step is not detailed because this 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 providers DNS settings.


Setting Up Stripe For Production

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

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.