Deployment
-
Commit your code and push to a private repo on GitHub.
-
Use your favorite hosting provider (Vercel for me) to create a new project based on the GitHub repo. You can deploy your app anywhere NextJS is supported: Vercel, Netlify, Render, etc.
-
Set the right .env file on your deployement as the
.env.localis not committed.💡Make
sureNEXTAUTH_URLmatches your domain name for auth features to work. ChangeNEXTAUTH_SECRETto anything else. -
Using Stripe? Follow the production checklist (scroll down on the page)
Congrats on making it that far, legend!
—Marc