Skip to content
Docs menuDeploy

Deploy

Deploy to Vercel in a few minutes, or to any host that runs Next.js.

Last updated November 1, 2026

Vercel

  1. 1
    Push your repoCreate a repository and push the project.
    git init
    git add -A
    git commit -m "First commit"
    git remote add origin <your-repo>
    git push -u origin main
  2. 2
    Import it on VercelCreate a new project from the repository. Vercel detects Next.js.
  3. 3
    Add environment variablesCopy every variable from your .env into the project settings with production values. Set NEXT_PUBLIC_APP_URL and BETTER_AUTH_URL to your real domain. SETUP.md lists them all.
  4. 4
    Create the production tablesPoint DATABASE_URL at the production database for one command from your machine.
    DATABASE_URL="<production url>" npx prisma db push
  5. 5
    Make sure Prisma generates its clientThe client is generated when you install. If your host builds from a cached install, add "postinstall": "prisma generate" to the scripts in package.json.

Where to host the database

Any host that gives you a connection string works: for PostgreSQL for example Neon or Supabase, for MySQL PlanetScale, for MongoDB MongoDB Atlas. Tailar only uses Prisma with the connection string; it does not depend on the host.

Other hosts

Any host that supports Next.js works. Set the same environment variables, run the build and start commands, and point your domain at it.

npm run build
npm run start
  • Node 20.9 or later (Node 22 or later with Google Cloud Storage)
  • A writable-free runtime: nothing is stored on local disk, files go to your bucket