Skip to content
Agent Ship Kit

Deploy

Get your app onto Vercel, Docker, Cloudflare Workers or Netlify.

Your README.md has the exact steps for the host you picked. We test the files against simulators, but we have not run these deploys ourselves, see Status.

Vercel

  1. Push the repository and import it at vercel.com/new.
  2. Add every required variable from .env.example, with production values.
  3. Run pnpm db:migrate against the production database.
  4. Register your production URL with your auth provider.
  5. Run pnpm check:setup --deploy.

Cron jobs are in vercel.json. The Hobby plan runs them at most once a day.

Docker

  1. Commit pnpm-lock.yaml, and the first migration from pnpm db:prepare.
  2. Run pnpm setup:secrets, rename .env.local to .env and fill it in.
  3. Run docker compose up -d --build.
  4. Check with curl http://localhost:3000/api/health.

On a server, put a TLS reverse proxy in front of 127.0.0.1:3000.

Cloudflare Workers

  1. Run npx wrangler login. A Next.js app usually needs Workers Paid; Free is enough for a first try.
  2. Add every secret from .env.example with npx wrangler secret put <NAME>, CRON_SECRET included.
  3. Run pnpm db:migrate against the production database (a pooled URL: Supabase pooler or Hyperdrive).
  4. Run pnpm cf:deploy. pnpm cf:preview runs the Worker on your machine first.
  5. Run pnpm check:setup.

Cron jobs are in wrangler.jsonc. Workers builds use Drizzle, not Prisma, and send email through an HTTP API, not SMTP.

Netlify

  1. Push the repository and import it at app.netlify.com/start. netlify.toml already sets the build.
  2. Add every required variable from .env.example, with production values.
  3. Run pnpm db:migrate against the production database.
  4. Register your production URL with your auth provider.
  5. Run pnpm check:setup.

Cron jobs are scheduled functions in lib/server/adapters/hosting/netlify/functions, one per job.