ZapStack

Deployment

Launch your app to the moon

Vercel

Guide to deploy your app to Vercel

  1. Sign up to Vercel.

  2. Create, push your git repo to a git provider and import your git repo here:

  1. Select your repo to deploy, then change Build & Development Settings:
  • Select Framework Preset to Next.js

  • Change Install Command to npm install && npm run update:postgres or npm install && npm run update:mongodb

  1. Add environment variables, basically copy from .env:

  1. For Authentication, update your configuration for Google and Github authentications: Home URL and Auth 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.

  1. For Stripe:
  • Turn of Test mode, update STRIPE_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:

checkout.session.completed
customer.subscription.updated
customer.subscription.deleted

Done!

Google Cloud

Coming soon

On this page