Skip to content

Commit 9065259

Browse files
authoredMar 20, 2025··
docs(start): move router configuration note to the top (#3819)
1 parent 7dfee39 commit 9065259

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎docs/start/framework/react/build-from-scratch.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ Once configuration is done, we'll have a file tree that looks like the following
135135
This is the file that will dictate the behavior of TanStack Router used within Start. Here, you can configure everything
136136
from the default [preloading functionality](../guide/preloading.md) to [caching staleness](../guide/data-loading.md).
137137

138+
> [!NOTE]
139+
> You won't have a `routeTree.gen.ts` file yet. This file will be generated when you run TanStack Start for the first time.
140+
138141
```tsx
139142
// app/router.tsx
140143
import { createRouter as createTanStackRouter } from '@tanstack/react-router'
@@ -156,9 +159,6 @@ declare module '@tanstack/react-router' {
156159
}
157160
```
158161

159-
> `routeTree.gen.ts` is not a file you're expected to have at this point.
160-
> It will be generated when you run TanStack Start (via `npm run dev` or `npm run start`) for the first time.
161-
162162
## The Server Entry Point
163163

164164
As TanStack Start is an [SSR](https://unicorn-utterances.com/posts/what-is-ssr-and-ssg) framework, we need to pipe this router

0 commit comments

Comments
 (0)
Please sign in to comment.