Pre-deployment validation and safety checks. Use when preparing to deploy, before releasing to production, or when the user mentions deployment, release, or going live.
Ensures code is production-ready before deployment.
Copy and work through this checklist:
## Deployment Readiness Check
### Code Quality
- [ ] All tests pass (`npm test` / `npm run test`)
- [ ] No TypeScript/ESLint errors (`npm run lint`)
- [ ] Build succeeds without warnings (`npm run build`)
### Debug Cleanup
- [ ] No `console.log` statements in production code
- [ ] No `debugger` statements
- [ ] No commented-out code blocks
- [ ] No TODO comments that block release
### Environment
- [ ] All required environment variables are set
- [ ] Secrets are not hardcoded
- [ ] `.env.example` is up to date
- [ ] Production database connection is configured
### Security
- [ ] No exposed API keys or credentials
- [ ] Authentication is properly enforced
- [ ] CORS is correctly configured
- [ ] Input validation is in place
### Performance
- [ ] Images are optimized
- [ ] Large dependencies are code-split
- [ ] No obvious N+1 queries
### Documentation
- [ ] README is current
- [ ] API changes are documented
- [ ] Changelog is updated
Run these before deploying:
# Check for debug statements
grep -r "console.log\|debugger" --include="*.ts" --include="*.tsx" --include="*.js" src/
# Run full test suite
npm test
# Build and check for errors
npm run build
# Check for uncommitted changes
git status
STOP deployment if: