Skip to content
flexcal Documentation

Vercel

  • A Vercel Pro plan.
  • A PostgreSQL database hosted somewhere else. Neon and Supabase both have usable free tiers.
  1. Fork flexcal and clone your fork.

  2. Copy .env.example to .env and fill it in, see Configuration.

  3. Install dependencies and apply the schema against your hosted database:

    Terminal window
    bun install
    bun run --cwd packages/prisma db-deploy
  4. Create a new Vercel project and import the fork.

  5. Set the environment variables in the project settings. Leave NEXTAUTH_URL empty: Vercel infers it from VERCEL_URL.

  6. Set the root directory to apps/web.

  7. Override the build command:

    Terminal window
    cd ../.. && bun run build
  8. Deploy, then open the instance and complete the setup wizard to create the first user.

Some features depend on the endpoints under apps/web/app/api/cron. Configure them with Vercel Cron Jobs.