-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Open
Labels
dotenvIssues and PRs related to .env file parsingIssues and PRs related to .env file parsingfeature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
What is the problem this feature will solve?
Most of my uses are for local development where I have a .env file. When actually deployed to production all variables are configured by prefixing the command, configuring k8s/docker variables, ... but almost never with a .env file. I think most people would want it to fail silently if no file was found. I'm not sure if you want to change that default in the next major version, but IMO at least a flag should be added
Also that's how dotenv behaved where I guess most node users would be switching from...
What is the feature you are proposing to solve the problem?
change signature to
function loadEnvFile(path?: string, { ignoreMissingFile?: boolean })
What alternatives have you considered?
No response
Yogu
Metadata
Metadata
Assignees
Labels
dotenvIssues and PRs related to .env file parsingIssues and PRs related to .env file parsingfeature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Type
Projects
Status
Awaiting Triage