Deploy OpenCut Web to Vercel
OpenCut’s web front-end is a standard Next.js app that Vercel handles well once dependencies and env vars are configured.
Steps
vercel initor import the GitHub repo in the Vercel dashboard.- Set Framework Preset to Next.js.
- Under Settings → General → Root Directory, point to
apps/web. - Under Settings → Build & Development, set Package Manager to
Bun. - Add env vars:
DATABASE_URLBETTER_AUTH_SECRETNEXT_PUBLIC_BETTER_AUTH_URLUPSTASH_REDIS_REST_URLUPSTASH_REDIS_REST_TOKEN
- Deploy.
Build command
bun install
bun run buildPost-deploy checks
vercel logsfor runtime errors.- Run
vercel env pull .env.productionlocally for debugging. - Ensure background worker endpoints point to production services.
Diagram
flowchart LR
A[GitHub push] --> B[Vercel build]
B --> C[Next.js static assets]
B --> D[Edge functions]
Add a custom domain and configure NEXT_PUBLIC_BASE_URL if your analytics rely on absolute URLs.