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
- Push the repository and import it at vercel.com/new.
- Add every required variable from
.env.example, with production values. - Run
pnpm db:migrateagainst the production database. - Register your production URL with your auth provider.
- Run
pnpm check:setup --deploy.
Cron jobs are in vercel.json. The Hobby plan runs them at most once a day.
Docker
- Commit
pnpm-lock.yaml, and the first migration frompnpm db:prepare. - Run
pnpm setup:secrets, rename.env.localto.envand fill it in. - Run
docker compose up -d --build. - 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
- Run
npx wrangler login. A Next.js app usually needs Workers Paid; Free is enough for a first try. - Add every secret from
.env.examplewithnpx wrangler secret put <NAME>,CRON_SECRETincluded. - Run
pnpm db:migrateagainst the production database (a pooled URL: Supabase pooler or Hyperdrive). - Run
pnpm cf:deploy.pnpm cf:previewruns the Worker on your machine first. - 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
- Push the repository and import it at app.netlify.com/start.
netlify.tomlalready sets the build. - Add every required variable from
.env.example, with production values. - Run
pnpm db:migrateagainst the production database. - Register your production URL with your auth provider.
- Run
pnpm check:setup.
Cron jobs are scheduled functions in lib/server/adapters/hosting/netlify/functions, one per job.