ESC
> launch.rentals beta
Home › Docs ›Operations › Deploying to Vercel

Deploying to Vercel

Redeploy the whole app on a new Vercel account at any time

Everything needed to run launch.rentals is in the repository, including database migrations, so a new Vercel account can host a fresh copy at any time.

Steps

  1. Import the Git repository into Vercel as a new project. The framework is detected as Next.js and vercel.json supplies the build command.
  2. Add the Neon integration from the Vercel marketplace. It sets DATABASE_URL for you.
  3. Set the other environment variables.
  4. Add your domain (for example rentals.iairu.com) to the project.
  5. Deploy. The build applies all migrations to the empty database first, then builds the app.

What the build does

StepCommand
Installnpm ci (and the dependencies of this documentation site)
Migratenpm run db:migrate
BuildThis site, then next build

If a migration fails, the build fails and the previous deployment keeps serving.

Updating

Push to main. Vercel builds, applies any new migrations and switches traffic once the build succeeds.