doc: typegen for typedRoutes (#96296)

`typegen` also generated the inputs needed for `typedRoutes`
This commit is contained in:
Joseph
2026-07-28 13:40:22 -04:00
committed by GitHub
parent c23d1a946c
commit 6b572345d3
@@ -366,7 +366,7 @@ export function Nav() {
> **How does it work?**
>
> When running `next dev` or `next build`, Next.js generates a hidden `.d.ts` file inside `.next` that contains information about all existing routes in your application (all valid routes as the `href` type of `Link`). This `.d.ts` file is included in `tsconfig.json` and the TypeScript compiler will check that `.d.ts` and provide feedback in your editor about invalid links.
> When running, `next typegen`, `next dev` or `next build`, Next.js generates a hidden `.d.ts` file inside `.next` that contains information about all existing routes in your application (all valid routes as the `href` type of `Link`). This `.d.ts` file is included in `tsconfig.json` and the TypeScript compiler will check that `.d.ts` and provide feedback in your editor about invalid links.
### Type IntelliSense for Environment Variables