E-007: CI/CD & First Deployment

Status: Next Owner: @bilal @deen Priority: P1 — Ship to Production

Objective

Get the application deployed to production with a reliable CI/CD pipeline.

Tasks

TaskIDDescriptionStatus
Build step in CICI-002Add type-check + build to GitHub ActionsPlanned
Security scanningCI-003Trufflehog (secrets), pnpm audit (deps)Planned
Supabase cloud projectDEPLOY-001Create project, apply migrationsPlanned
Vercel deploymentDEPLOY-002Connect repo, configure buildPlanned
Health check endpointDEPLOY-003GET /api/health — checks DB + LLM availabilityPlanned
Production secretsDEPLOY-004Configure all env vars in VercelPlanned
Domain + DNS + CORSDEPLOY-005ehq.tech → Vercel, CORS in SupabasePlanned
Error monitoringDEPLOY-006Sentry SDK, source mapsPlanned

Pipeline Design

PR → Lint + Type-Check → Tests → Build → Security Scan
  → (on merge to main) → DB Migrations → Deploy → Smoke Tests

Infrastructure

ComponentService
HostingVercel
DatabaseSupabase Cloud
Domainehq.tech
CI/CDGitHub Actions
ErrorsSentry
UptimeUptimeRobot

Dependencies

  • Domain registration (ehq.tech — see Domain & Email Setup)
  • Supabase Pro plan decision (for pg_cron, if needed)
  • LLM API keys for production