docs(Start): Revise migration guide for TanStack Start #5211
Mergedchribjel(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/5211/headmerged by schiller-manuel(GitHub profile, opens in a new tab) github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation
chribjel(GitHub profile, opens in a new tab) changed the title
- docs/start/framework/react/migrate-from-next-js.md lines 58 to 59OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -55,5 +55,5 @@5555 TanStack Start leverages [Vite](https://vite.dev) and TanStack Router:56565757 ```sh58-npm i @tanstack/react-router @tanstack/react-start vite58+npm i @tanstack/react-router @tanstack/react-start vite @vitejs/plugin-react5959 ```
Sign in to join this conversation.
Walkthrough#
Documentation for migrating from Next.js to React with TanStack Start was updated: install lines and tooling moved Vite-related packages into Tailwind/JS tooling, added tanstackStart
srcDirectoryand changedroutesDirectorydefault toroutes(examples useapp), renamedsrc/start.tsx→src/router.tsx, and updated code examples to new public APIs (createFileRoute,Route.useParams(),Link to,createServerFn, server/handlers).Changes#
docs/start/framework/react/migrate-from-next-js.mdsrcDirectoryoption (default'src') and changedroutesDirectorydefault to'routes'(examples recommend'app'for Next parity). Updated examples: renamesrc/start.tsx→src/router.tsx; switch tocreateFileRoutefor route definitions; replaceparamsusage withRoute.useParams(); changeLink href→Link to; introducecreateServerFnand updated server route/handler patterns and imports.Sequence Diagram(s)#
Estimated code review effort#
🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem#
Pre-merge checks and finishing touches#
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 66980e145fdf86b8954982caa45fc889032be110 and ec66fd3e9cf3bc2a0386d7bec4710124ffb24cba.
📒 Files selected for processing (1)
docs/start/framework/react/migrate-from-next-js.md(3 hunks)🧰 Additional context used
📓 Path-based instructions (2)
docs/**/*.{md,mdx}
📄 CodeRabbit inference engine (AGENTS.md)
Files:
docs/start/framework/react/migrate-from-next-js.mddocs/{router,start}/**
📄 CodeRabbit inference engine (AGENTS.md)
Files:
docs/start/framework/react/migrate-from-next-js.md🔇 Additional comments (14)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share