Publish Codebase
This guide covers committing changes, creating a project, importing environment variables, connecting your domain, and setting up Stripe and Google Sign-In for production.
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.
Committing Changes
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 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.
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.