docs: clarify next-env.d.ts regeneration (#94232)
## What? Closes #94153. Clarifies that `next-env.d.ts` is managed by Next.js and that its contents may change over time, including between commands such as `next dev` and `next typegen`. ## Why? Projects that still track `next-env.d.ts` can see command-order diffs when the generated route type imports switch between `.next/dev/types` and `.next/types`. The docs already recommend excluding the file from version control; this makes the generated-file contract and manual-edit guidance explicit. ## Testing - `npx --yes prettier@3.6.2 --check docs/01-app/03-api-reference/05-config/02-typescript.mdx` - `git diff --check`
Showing
Please
register
or
sign in
to comment