The result of the Astro Starlight →
TanStack CMS migration: ../astro-starlight-before
ported to a TanStack Start app on TanStack CMS 1.0 — the same shape as
../blog, with the docs theme variant.
All the app-specific code is:
src/cms.definition.ts— thepagecollection mapped from the Starlight frontmatter and aredirectcollection for the old URLs.src/cms.config.ts—defineCms(definition, …)with the blocks, AI adapters, seed, and a Starlight-like theme.src/seed-data.ts— every docs file as apagedocument (MDX flattened) plus the redirects, generated byscripts/migrate-starlight.mjs.src/router.tsx+vite.config.ts— the standard wiring; routes come from@tanstack/cms-ui-reactthroughcreateRoutes(definition).src/migration.test.ts— the parity test.
See MIGRATION.md for the conversion map, the parity test,
and the gap report.
pnpm install # from the repo root (workspace)
pnpm --filter astro-starlight-after dev # http://localhost:3013
pnpm --filter astro-starlight-after test:lib # parity testThe sidebar is built from the page documents' slugs and sidebarOrder.
Each page is served at its slug under /docs (/docs/start/installation),
and old Starlight URLs such as /start/installation/ redirect there. Compare against astro-starlight-before on :3012.
No server needed — Starlight content is files:
pnpm --filter astro-starlight-after migrate:data