Deployment
Launch your app to the moon
Vercel
Guide to deploy your app to Vercel
-
Sign up to
Vercel
. -
Create, push your git repo to a git provider and import your git repo here:
- Select your repo to deploy, then change
Build & Development Settings
:
-
Select
Framework Preset
toNext.js
-
Change
Install Command
tonpm install && npm run update:postgres
ornpm install && npm run update:mongodb
- Add environment variables, basically copy from
.env
:
- For
Authentication
, update your configuration for Google and Github authentications:Home URL
andAuth callback URL
to your external domain. You can get a Vercel domain after deploying, like this:
https://zapstack-dev-zapstacks-projects.vercel.app/
Also use the domain above for
BASE_URL
env var.
- For
Stripe
:
-
Turn of
Test mode
, updateSTRIPE_SECRET_KEY_LIVE
and add new live products if you want to live your app. -
Add a new webhook endpoint for your external domain
http://[your_domain]/api/webhooks/stripe
with following events:
Done!
Google Cloud
Coming soon