Skip to main content
Every active web app moves to TanStack Start on Vite+ and Void, hosted as a Cloudflare Worker, linted and formatted with Oxc, and served at tuturuuu.com/<app>. Legacy <app>.tuturuuu.com hosts answer 301 to the apex path. This page holds the program inventory, the wave order and the acceptance bar. The native Start migration runbook holds the per-app mechanics, and the Gateway Worker page holds mount and legacy-redirect operations.

Invariants

  • One central session. Mounted apps read the shared tuturuuu.com session and never write or clear session cookies. Satellites resolve actors with getSatelliteAppSessionUser('<app>') (Next) or @tuturuuu/satellite/auth-request (Start). They never use @tuturuuu/utils/user-helper.
  • Apex paths. Each app’s mount comes from ONE_ORIGIN_APP_BASE_PATHS in packages/utils/src/app-mounts.ts. Product marketing lives under /products/<app>.
  • No Vercel. Rollback targets are the prior Worker version and the captured hostname attachment. A Vercel deployment is never a rollback target, and build:legacy Next builds exist only until an app’s Next retirement step.
  • Framework-independent packages. Domain libraries in packages/* keep portable entrypoints free of Next.js, React Router and Cloudflare runtime imports. Adapters inject request identity, storage, navigation and locale. App source reaches next/* only through @tuturuuu/start-bridge.
  • Next on Cloudflare in the meantime. apps/web serves on Next through the OpenNext/vinext Worker until each of its route families moves to its Start candidate.
  • Bounded spend. Each new Worker keeps its CPU limit, sampling rate and abuse-guard binding. Any added queue, cron or retry loop needs the stop fence and operation-count evidence from Oxc and Cloudflare adoption.

What “migrated” means

An app is done when all five hold for the exact production commit:
  1. Start serving: production traffic reaches the app’s native Start Worker, and responses carry x-tuturuuu-runtime: native.
  2. Apex mount: the gateway lists /<app> and /<app>/* with a MOUNT_* binding. Signed-in apps also appear in Web’s active-mount list (node scripts/active-app-mounts.mjs) and serve /<app>/verify-token.
  3. Legacy 301: the app is in the rendered SUBDOMAIN_REDIRECT_APPS with an APP_* binding, and <app>.tuturuuu.com is attached to tuturuuu-apex-redirect.
  4. Next retired: no build:legacy, vercel.json or Next-only deploy path remains. The next package stays only as the bridge’s type contract until the app’s source drops App Router modules.
  5. Accepted: the per-app acceptance below passed, and the cutover report is filed.

Inventory

Measured on main at cba0acd150 (2026-12-03). The columns are:
  • Framework: Start is vp build primary, Next+bridge is a Next build with a Start/Void candidate beside it, OpenNext is Next on Workers.
  • Serving: the productionPublicationPolicy state in tuturuuu.ci.ts, or the reason the app is excluded.
  • Apex: live means the mount is in GATEWAY_MOUNTED_PATHS, and prepared means it is only in scripts/apex-migration.mjs.
  • 301: live means the app is in LIVE_REDIRECT_APPS with an APP_* binding, and prepared means it is only in legacyHosts.
  • Size: pages plus route handlers, and src LOC excluding generated files.
Native services (API, gateway, cron control, coordination, ops hub, realtime Workers and similar) already build with Vite+. They follow the Worker toolchain rows in Oxc and Cloudflare adoption and need no framework change.

apps/tanstack-web

apps/tanstack-web is a hand-port of Web that stays paused. Its latest release is 0.39.0 (2026-10-04). It pins @tanstack/react-start 1.168.60 against the shared 1.169.3, uses plain Vite with Nitro rather than Vite+ and Void, and aliases next/* to local shims instead of @tuturuuu/start-bridge. Its wrangler.jsonc binds the paused Rust BACKEND service. Its manifest tracked 158 pages and 653 handlers, while Web serves 187 pages and 787 API routes. Web migrates in place instead: apps/web/vite.config.mts builds the Start candidate from apps/web/cloudflare/start through the shared bridge preset, and apps/web/start-route-manifest.json falls back to Next per route. Resuming the hand-port would need a toolchain move, removal of the Rust binding and a rebase onto roughly 1,000 routes before any guard change paid off. Its pause guards (scripts/paused-runtimes.js, the root --filter exclusions, test shards, Oxc ignores, Renovate and the tanstack-route-manifest.yaml switch) therefore stay in place. Remove the tree in the Next retirement wave once nothing references its manifest.

Waves

Waves run in parallel whenever they touch different apps. The order below is by risk (auth surface, size, open holds) and value (traffic, Vercel retirement). New office apps (Docs, Sheets, Slides, Wiki, Whiteboards) ship through their own lanes, and they mount at their registry paths when admitted.

Prepared apex batch

scripts/apex-migration.mjs prepares fifteen mounts and about thirty legacy hosts behind APEX_MIGRATION_ACTIVE. The program promotes them one app at a time; Tasks and Finance went first, and the Tools cutover packet follows the same steps. Each app moves its /<app> entry and MOUNT_* binding into apps/gateway/wrangler.jsonc, then its APP_* binding and LIVE_REDIRECT_APPS entry, and each step carries its own acceptance and rollback. Flip the switch only for apps still in the batch, and only when all of them pass together.

Per-app acceptance

Each app gets one integration writer and one Fleet task. Every gate runs on the exact commit that ships:
  1. CI: unit tests, type-check, lint, start-bridge-routes check, a real vp build and the app’s <app>-cloudflare.yaml, all green on the exact SHA. Local gates run through ttr resources run --.
  2. Worker runtime: the sealed artifact’s emitted runtime suite passes on the original and on a fresh restore with unchanged bytes. Mount profiles qualify both the subdomain and /<app>. Build info comes from generated source metadata.
  3. Signed-in QA: QA accounts issued by ttr sign in on the 0% staged version through the version-override header. Cover sign-in and refresh, MFA, the workspace permission matrix, English and Vietnamese hydration, the primary flows, a localized deep link with duplicate query keys, an asset, and the legacy callback and machine-path passthrough. Owner-provisioned staging acceptance stays required wherever the native Start migration runbook requires it.
  4. Scoped promotion: promote only that app’s Worker version and attachment. Before the flip, record the prior Worker version ID and the captured routes, custom domains and DNS records, with the one-step restore command and who runs it. Gateway or attachment packets go to Iris with the packet SHA-256 and source commit before any provider write.
  5. Watch: smoke within minutes, then watch for 30–60 minutes against the prior baseline for 5xx rate, auth loops, p95 TTFB and client errors. Any user-visible regression triggers an immediate rollback to the previous Cloudflare Worker version, then a fix forward. A Vercel deployment is never a rollback target. File the cutover report.

Parity criteria

  • Routes: every page.* and route.* is generated, natively owned or ignored with a reason in the bridge registry. Unmigrated paths return the Next fallback, never a 404, until retirement.
  • Auth: central-session reads only, with no cookie writes from mounted apps (the mounted no-writer guard). Wrong-app and expired sessions are refused. Logout clears the root session.
  • API: /api/* an app does not own forwards to Web unchanged. Owned handlers keep their auth and rate-limit wrappers.
  • Locale and SEO: English and Vietnamese render identically to Next. The canonical URL is the apex path: the app’s seo-policy.json entry moves to origin https://tuturuuu.com with its basePath before the legacy host redirects, so indexable legacy pages land on indexable apex pages. Staging and private versions stay noindex.
  • Performance: p95 TTFB and error rates at or below the prior deployment. Vite assets are relative so one artifact serves both hosts.

Keeping packages framework-agnostic

  • Domain and data packages (packages/internal-api, packages/utils, domain *-core packages) export portable entrypoints with no next/*, @tanstack/react-router or cloudflare:* imports. Framework code lives in explicit adapter entrypoints such as @tuturuuu/satellite/auth (Next) and @tuturuuu/satellite/auth-request (Start).
  • Identity, storage, navigation and locale arrive as injected arguments or adapter callbacks, never as request globals.
  • A missing bridge capability is added to @tuturuuu/start-bridge within its frozen v0 contract and is never copied into an app.
  • Extractions keep public exports stable with thin re-exports and add a focused boundary test. bun validate’s internal-app-auth guard keeps satellites off user-helper.