Vercel
Requirements
Section titled “Requirements”- A Vercel Pro plan.
- A PostgreSQL database hosted somewhere else. Neon and Supabase both have usable free tiers.
-
Fork flexcal and clone your fork.
-
Copy
.env.exampleto.envand fill it in, see Configuration. -
Install dependencies and apply the schema against your hosted database:
Terminal window bun installbun run --cwd packages/prisma db-deploy -
Create a new Vercel project and import the fork.
-
Set the environment variables in the project settings. Leave
NEXTAUTH_URLempty: Vercel infers it fromVERCEL_URL. -
Set the root directory to
apps/web. -
Override the build command:
Terminal window cd ../.. && bun run build -
Deploy, then open the instance and complete the setup wizard to create the first user.
Cron jobs
Section titled “Cron jobs”Some features depend on the endpoints under apps/web/app/api/cron. Configure them with
Vercel Cron Jobs.