Build & Deployment
Vercel Setup
Project Settings
- Project Name: agentbot
- Root Directory:
web - Framework: Next.js (auto-detected)
Environment Variables
Required for production:
Optional but recommended:
Build Commands
Deployment
Automatic (Git Push)
Push to main branch triggers Vercel deployment automatically.Manual
Build Stability
Pre-build Validation
The build includes:- Prisma client generation
- TypeScript compilation
- Next.js static generation
Common Issues
Rollback
Vercel automatically keeps deployment history. To rollback:- Go to Vercel Dashboard
- Find previous working deployment
- Click ”…” → “Promote to Production”