next-env.d.ts
Answered
Raspberry Horntail posted this in #help-forum
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
3 Replies
@Raspberry Horntail 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.
Yes, it’s automatically created if missing. No need to worry about it and no need to track it with git
Answer
@joulev Yes, it’s automatically created if missing. No need to worry about it and no need to track it with git
Raspberry HorntailOP
even in npm run dev?
yes