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.local
is not committed.💡Make
sureNEXTAUTH_URL
matches your domain name for auth features to work. ChangeNEXTAUTH_SECRET
to anything else. -
Using Stripe? Follow the production checklist (scroll down on the page)
Congrats on making it that far, legend!
—Marc