Deployment Workflow
When to Use
When the user asks to deploy to Vercel or prepare for deployment.
Instructions
Pre-Deploy Checklist
- •Run quality gates:
bash
pnpm typecheck pnpm lint pnpm test pnpm build
- •Verify all checks pass. Do not deploy if any fail.
- •Check environment variables are configured in Vercel dashboard.
- •Review
docs/tracking/checklist.mdpre-deploy section.
Deploy
- •Push the branch to GitHub.
- •If deploying to production:
- •Ensure PR is approved and merged to main
- •Vercel auto-deploys from main
- •If deploying a preview:
- •Push the feature branch
- •Vercel creates a preview deployment automatically
Post-Deploy
- •Verify the deployment:
bash
curl https://{deployment-url}/api/health - •Check Vercel deployment logs for errors.
- •Update
docs/tracking/checklist.mdpost-deploy section. - •Update
docs/tracking/change_log.mdwith deployment note.
Vercel Configuration
- •Framework: Next.js (auto-detected)
- •Build command:
pnpm build - •Output directory:
.next - •Node.js version: 22.x
- •Region: IAD1 (US East)
Environment Variables Required
- •
NEXT_PUBLIC_INSTANT_APP_ID - •
INSTANT_ADMIN_TOKEN - •
ANTHROPIC_API_KEY - •
OPENCLAW_API_KEY - •
OPENCLAW_GATEWAY_URL