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

Should pick the same environment key as the default key if the config doesn't have any default. #10

Open
suthagar23 opened this issue Aug 29, 2020 · 0 comments
Labels
hacktoberfest Hacktoberfest New Feature Requesting new feature

Comments

@suthagar23
Copy link
Member

{
   "APP_SECRET": {
      "DEV" : "12345"
   }
}

In the above example, the .env.config doesn't have any default mapping value. Better to have the default parse value key as the same configuration key - APP_SECRET. So finally, it should parse the following config,

{
   "APP_SECRET": {
      "DEV" : "12345",
      "DEFAULT" : "{{APP_SECRET}}"
   }
}

Here, the user will have the freedom to pass this value outside from .env.config.

APP_SECRET=123 node index.js
@suthagar23 suthagar23 added the New Feature Requesting new feature label Aug 29, 2020
@suthagar23 suthagar23 added the hacktoberfest Hacktoberfest label Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest Hacktoberfest New Feature Requesting new feature
Projects
None yet
Development

No branches or pull requests

1 participant