Clean workspace verification
readyEnvironment: local / CI
bash scripts/cleanup-legacy-routes.sh && npm run build
Prevents old deleted API folders from breaking builds.
Keep build cleanup, SQL compatibility, environment validation, and gateway smoke tests in one runbook.
Environment: local / CI
bash scripts/cleanup-legacy-routes.sh && npm run build
Prevents old deleted API folders from breaking builds.
Environment: staging / production
Run docs/database-compatibility-fixes.sql first
Repairs older tables before schema, RLS, and seed execution.
Environment: Vercel
Check NEXT_PUBLIC_SITE_URL, Supabase URL, anon key, service role key
Required before OAuth, admin APIs, and telemetry writes can work.
Environment: pilot runtime
curl /api/v1/models && curl /api/router/simulate
Confirms API gateway and routing layer before customer integration.