Skip to main content

Deployment

Build

bun build

Start

bun start

Database migrations

For production deployments:
bun run migrate:prod

Required configuration

Make sure these variables are configured for your environment:
  • DATABASE_URL
  • BETTER_AUTH_SECRET
  • BETTER_AUTH_URL
  • NEXT_PUBLIC_APP_URL
If you use auth providers, payments, email, storage, or Sentry, set those values as well.