Vercel
- 1Push your repoCreate a repository and push the project.git initgit add -Agit commit -m "First commit"git remote add origin <your-repo>git push -u origin main
- 2Import it on VercelCreate a new project from the repository. Vercel detects Next.js.
- 3Add environment variablesCopy every variable from your
.envinto the project settings with production values. SetNEXT_PUBLIC_APP_URLandBETTER_AUTH_URLto your real domain.SETUP.mdlists them all. - 4Create the production tablesPoint
DATABASE_URLat the production database for one command from your machine.DATABASE_URL="<production url>" npx prisma db push - 5Make 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 inpackage.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