Deployment automation

Repeatable deployment checks before customer-facing pilots.

Keep build cleanup, SQL compatibility, environment validation, and gateway smoke tests in one runbook.

Clean workspace verification

ready

Environment: local / CI

bash scripts/cleanup-legacy-routes.sh && npm run build

Prevents old deleted API folders from breaking builds.

Supabase compatibility repair

ready

Environment: staging / production

Run docs/database-compatibility-fixes.sql first

Repairs older tables before schema, RLS, and seed execution.

Environment validation

watch

Environment: Vercel

Check NEXT_PUBLIC_SITE_URL, Supabase URL, anon key, service role key

Required before OAuth, admin APIs, and telemetry writes can work.

Runtime smoke test

watch

Environment: pilot runtime

curl /api/v1/models && curl /api/router/simulate

Confirms API gateway and routing layer before customer integration.

Deployment Automation | UmamiEdge