Skip to content

Commit 9279fd3

Browse files
committed
docs(upgrading): improve callout for .gitignore
1 parent 45139a1 commit 9279fd3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

docs/upgrading/component-routes.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,20 @@ At this point you should be able to to boot the app and see the root layout.
257257
}
258258
```
259259

260-
> Note: Make sure to add `/.react-router/` to your `.gitignore` file to avoid tracking unnecessary files in your repository.
261-
262260
Now make sure you can boot your app at this point before moving on:
263261

264262
```shellscript
265263
npm run dev
266264
```
267265

266+
You will probably want to add `.react-router/` to your `.gitignore` file to avoid tracking unnecessary files in your repository.
267+
268+
```txt
269+
.react-router/
270+
```
271+
272+
You can checkout [Type Safety][type-safety] to learn how to fully setup and use autogenerated type safety for params, loader data, and more.
273+
268274
## 8. Render your app
269275

270276
To get back to rendering your app, we'll update the "catchall" route we setup earlier that matches all URLs so that your existing `<Routes>` get a chance to render.

docs/upgrading/router-provider.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,14 @@ Now make sure you can boot your app at this point before moving on:
412412
npm run dev
413413
```
414414

415+
You will probably want to add `.react-router/` to your `.gitignore` file to avoid tracking unnecessary files in your repository.
416+
417+
```txt
418+
.react-router/
419+
```
420+
421+
You can checkout [Type Safety][type-safety] to learn how to fully setup and use autogenerated type safety for params, loader data, and more.
422+
415423
## Enable SSR and/or Pre-rendering
416424

417425
If you want to enable server rendering and static pre-rendering, you can do so with the `ssr` and `prerender` options in the bundler plugin. For SSR you'll need to also deploy the server build to a server. See [Deploying][deploying] for more information.

0 commit comments

Comments
 (0)