apps/git runs natively on TanStack Start + Vite+ + Void on main, beside its Next build.
vercel-production-git.yaml still deploys the Next app, so the current Vercel deployment
keeps serving until the route is flipped.
Worker
- Worker:
tuturuuu-gitwhenVITE_GIT_NATIVE_PROFILE=production, and the staging Worker name by default.workers_devandpreview_urlsstay off. Production setsTUTURUUU_NOINDEX=0; the default build sets1. Nothing here attaches a route. - Entry:
apps/git/cloudflare/worker.ts; Wrangler config is emitted byvoidintodist. - Host:
git.tuturuuu.com. Root-only:mountHostsis empty andunknownHostisreject, sotuturuuu.com/gitand any other host answer 404 before app code runs. - Binding:
ASSETS(static output,run_worker_first). - Variables (names):
TUTURUUU_NOINDEX, optionalINTERNAL_WEB_API_ORIGIN(defaulthttps://tuturuuu.com). - Secrets (names, set in the Worker, never in the repo):
NEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY,SUPABASE_SECRET_KEY,ENCRYPTION_MASTER_KEY,TUTURUUU_APP_COORDINATION_SECRET. Compare with the Vercel project environment list before the flip.
Build and qualification
git-cloudflare.yaml runs the same steps for the default build, records the emitted config receipt and packages
dist with the receipt. git-cutover-artifact builds with VITE_GIT_NATIVE_PROFILE=production and seals that output with scripts/ci/git-native-artifact.py (config, seal, pack). cloudflare/anonymous.runtime.mjs starts the emitted Worker in
workerd: the canonical host answers the public root (a redirect to /tutur3u/platform, or
200), an unknown host answers 404, and closed public ingress such as
/api/storage/probe answers 403.
Smoke checks after the route is attached
5xx.
Rollback
- Before the flip, record the current production Vercel deployment id (the repo does not
store it) and the DNS records and TTLs for
git.tuturuuu.comin the release record. - Roll back by detaching the Worker route or restoring the captured DNS records to the
recorded deployment.
vercel-production-git.yamlstill deploys the Next app. - Rerun the smoke checks against the Vercel origin.