Skip to content
Source
Sign inSign up
TanStack/router

docs(Start): Revise migration guide for TanStack Start #5211

Mergedchribjel(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/5211/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 1 changed file with 6 additions and 5 deletions.

x
0 of 1 viewed, 1 left
6 additions and 5 deletionsdocs/start/framework/react/migrate-from-next-js.mdModified
View file
@@ -55,13 +55,13 @@
TanStack Start leverages [Vite](https://vite.dev) and TanStack Router:
​
```sh
-npm i @tanstack/react-router @tanstack/react-start vite
+npm i @tanstack/react-router @tanstack/react-start
```
​
For Tailwind CSS and resolving imports using path aliases:
​
```sh
-npm i -D @tailwindcss/vite tailwindcss vite-tsconfig-paths
+npm i -D vite @vitejs/plugin-react @tailwindcss/vite tailwindcss vite-tsconfig-paths
```
​
### 3. Update Project Configuration
@@ -100,9 +100,10 @@
// Enables Vite to resolve imports using path aliases.
tsconfigPaths(),
tanstackStart({
+ srcDirectory: 'src', // This is the default
router: {
// Specifies the directory TanStack Router uses for your routes.
- routesDirectory: 'src/app', // Defaults to "src/routes"
+ routesDirectory: 'app', // Defaults to "routes", relative to srcDirectory