Infrastructure

Status: Draft Owner: @bilal @deen Last Updated: 2026-02-15

Current State

Not yet deployed. Everything runs locally.

Local Development Stack

ServiceURL
Applicationhttp://localhost:3000
Supabase APIhttp://127.0.0.1:54321
Supabase Studiohttp://127.0.0.1:54323
PostgreSQL127.0.0.1:54322
Inbucket (email)http://127.0.0.1:54324

Requires: Docker 24+, Node.js, pnpm, Supabase CLI.

Target Production Stack

ComponentServiceNotes
Next.js hostingVercelZero-config, preview deploys
DatabaseSupabase CloudManaged PostgreSQL + pgvector
AuthSupabase Auth
StorageSupabase StorageIssue attachments, documents
Domainehq.techSee Domain & Email Setup
CI/CDGitHub ActionsLint type-check test build deploy
Error trackingSentry (planned)
UptimeUptimeRobot

Deployment Checklist

  • Supabase cloud project created
  • Migrations applied to cloud
  • Vercel project connected to repo
  • Environment variables configured
  • DNS pointing to Vercel
  • CORS origins set in Supabase
  • Health check endpoint (/api/health)
  • Error monitoring (Sentry)
  • Production secrets rotated

Environments

EnvironmentPurpose
devLocal development
prodProduction

No staging initially. Minimal pipeline approach.

Monitoring (Planned)

LayerTool
UptimeUptimeRobot
ErrorsSentry
AuditDatabase (built-in)
Cron healthCronitor