Type-safety for process.env #65588
Closed
phibersoft
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Will be a feature in Next 15; #67157 :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Background
In every project, i have to create additional type file and update that file whenever i add something to environment files. We can change this for typescript developers
Proposal
As a Node + Typescript user, I'm solving like this:
global.d.ts
file:tsconfig.json > include
NextJS already watching env files for changes, so maybe it can create a file on background and update it automatically?
Beta Was this translation helpful? Give feedback.
All reactions