docs
Deployment
Next Auth+mangodb

Step 1

Commit your code and push to a private repo on GitHub.

Step 2

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.

Step 3

Set the right .env file on your deployement as the .env.local is not committed.

ℹ️

Using Stripe? Going to production?

👉Turn OFF Test Mode in your Stripe Dashboard

👉In your [Developers], copy your public & private keys and add them to STRIPE_SECRET_KEY & STRIPE_PUBLIC_KEY in your production environment variables.

👉In your [Developers], [Webhook], [Add Enpoint]. Set your domain + /api/webhook/stripe. Select [checkout.session.completed] event (or more if needed). Copy the signing secret and add it to STRIPE_WEBHOOK_SECRET in your production environment variables.

Optional: In [Balance], [Manage Payouts], set a specific date of the month to receive your payouts (I use the 10th of each month)

Optional: In [Settings], [Customers Emails], activate emails for successful payments & refunds