| name | deploy |
| description | Deploy frontend (Vercel) and/or backend (Koyeb) to production with pre-deploy quality gates |
| argument-hint | ["frontend|backend|both"] |
| disable-model-invocation | true |
| user-invocable | true |
| allowed-tools | Bash, Read, WebFetch |
Deploy to Production
Deploy FloodSafe services with pre-deploy verification gates.
Pre-Deploy Quality Gates (ALL must pass)
Run these checks sequentially. If any fail, STOP and report the failure:
-
TypeScript type check:
cd apps/frontend && npx tsc --noEmit
-
Frontend build:
cd apps/frontend && npm run build
-
Frontend lint:
cd apps/frontend && npm run lint
-
Backend tests (quick):
cd apps/backend && python -m pytest -m "not db_required" -q
If any gate fails, report the error and do NOT proceed to deployment.
Deployment
Check $ARGUMENTS for target. If not specified, ask the user: frontend, backend, or both?
Frontend (Vercel)
cd apps/frontend && npx vercel --prod
Backend (Koyeb)
./koyeb-cli-extracted/koyeb.exe services redeploy floodsafe-backend/backend
Post-Deploy Verification
After deployment completes, run health checks:
- Frontend: Fetch
https://frontend-lime-psi-83.vercel.app and verify it loads
- Backend:
curl https://floodsafe-backend-floodsafe-dda84554.koyeb.app/health — expect {"status": "healthy"}
Report results with:
- ✅/❌ for each gate
- ✅/❌ for each deployment
- ✅/❌ for each health check
- Production URLs for quick access