Unverified Commit 3cd4f34d authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add comment to not edit in next-env file (#26573)

This adds a comment to the generated `next-env.d.ts` to mention it should not be edited pointing to the documentation which contains an example of adding custom types separately. 

x-ref: https://github.com/vercel/next.js/issues/26560

## Documentation / Examples

- [x] Make sure the linting passes
parent 77895fd0
......@@ -17,6 +17,10 @@ export async function writeAppTypeDeclarations(
os.EOL +
(imageImportsEnabled
? '/// <reference types="next/image-types/global" />' + os.EOL
: '')
: '') +
os.EOL +
'// NOTE: This file should not be edited' +
os.EOL +
'// see https://nextjs.org/docs/basic-features/typescript for more information.'
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment