Next.js Discord

Discord Forum

next-env.d.ts

Answered
Raspberry Horntail posted this in #help-forum
Open in Discord
Raspberry HorntailOP
can someone explain me why this file in gitignore in next js? does it mean it's create auto?
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Answered by joulev
Yes, it’s automatically created if missing. No need to worry about it and no need to track it with git
View full answer

3 Replies