apps/rewise) runs on TanStack Start, Vite+ and Void behind
@tuturuuu/start-bridge. The Next.js build
(build) and the Vercel project stay in place until the cutover has been
stable, so the canonical host keeps a one-step route back.
Worker profiles
Neither profile declares routes;
workers_dev and preview_urls are off. The
only canonical host is rewise.tuturuuu.com (the retired rewise.me and
rewise.school origins are rejected). Any other host answers 404.
A Worker missing any required secret or an abuse guard configuration,
refuses to serve (cloudflare/required-secrets.ts) instead of running on a
fallback. Names only are recorded here.
Build and artifact
rewise-cloudflare.yaml has a cutover-artifact job that builds with
VITE_REWISE_NATIVE_PROFILE=production, seals the Worker, assets and emitted
Wrangler config with scripts/ci/rewise-native-artifact.py, records the
emitted configuration receipt, runs
node --test cloudflare/anonymous-smoke.runtime.mjs against the sealed output in
workerd with synthetic secrets only, and uploads
rewise-cutover-production-<source SHA>. It never deploys. Do not run
build:cloudflare on a shared development machine.
Cutover packet
Switch
- Record the source SHA, artifact name and Vercel deployment ID.
- Provision the secrets and vars on
tuturuuu-rewise, deploy the sealed output, and run the smoke below against the Worker’s own address. - Attach
rewise.tuturuuu.com(a proxied route in front of the still-valid Vercel origin where possible).
Smoke
/login, a redirect to https://tuturuuu.com/login,
the accepted commit, and 404.
Rollback
- Triggers: 5xx above 1% for 5 minutes, a sign-in loop, a chat or AI route failing for authenticated users, or any cross-host response.
- Action: remove the Worker route (or repoint the mapping) so the host resolves to the recorded Vercel deployment. Never rebuild on the rollback path.
- Data: a route rollback changes no conversation data.
- Stability: keep the Vercel project and domain for 14 consecutive stable days before decommissioning, which is a separate approval.