Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[std/dotenv] - change .env.example to .env.required #3561

Closed
cknight opened this issue Aug 22, 2023 · 1 comment
Closed

[std/dotenv] - change .env.example to .env.required #3561

cknight opened this issue Aug 22, 2023 · 1 comment

Comments

@cknight
Copy link
Contributor

cknight commented Aug 22, 2023

The dotenv module has the concept of a .env.example file which dictates a set of environment variables which must be present (either through .env/.env.default files or via the process environment). If any are missing after the dotenv is loaded then an exception is thrown. A secondary use case is that it can be used to document the purpose of these environment variables. I propose renaming .env.example to .env.required to be clearer as to its purpose. 'Example' does not convey that the entries are required to exist.

@iuioiua
Copy link
Contributor

iuioiua commented Jul 19, 2024

We've now removed the examplePath option from @std/dotenv/load. See #5449 for details. Either way, thank you for your suggestion.

@iuioiua iuioiua closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants