Next.js Discord

Discord Forum

Can I Include 'next-env.d.ts' in My GitHub Repository

Answered
Alaska pollock posted this in #help-forum
Open in Discord
Alaska pollockOP
Next.js automatically adds "next-env.d.ts" to the .gitignore by default. Are there any issues with including this file in my GitHub repository? I want to do this because my TypeScript compiler in my GitHub Actions workflow needs the image types from 'next-env.d.ts' to run successfully.
Answered by linesofcode
you can include it
View full answer

6 Replies

Its fine
you can include it
Answer
only issues if there are some sesnitive keys in that file
which would be a code smell in the first place
Alaska pollockOP
yeah, i'm not changing that file at all. Just keeping it as it is by default.
appreciate the help