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

[Question/issue] How to load hierarchical settings from env #383

Open
felpel opened this issue Aug 31, 2021 · 0 comments
Open

[Question/issue] How to load hierarchical settings from env #383

felpel opened this issue Aug 31, 2021 · 0 comments

Comments

@felpel
Copy link

felpel commented Aug 31, 2021

Hi,

I've been trying to combine dotenv with nconf to securely store sensitive settings for local development.

In short, a .env file, ignored from source control, would contain application settings containing sensitive information such as credentials for 3rd-party authentication.

However, I'm facing a wall where it does seem like I can override any setting that would be nested within another property if I combine both env and file providers, where env values would override the values found in the file that serves as a baseline.

I've set the a Node.JS Stackblitz sample as a proof of concept to illustrate this situation.

I'm uncertain whether this is a bug or if it would be as designed. If you have another course of action to suggest, I'm open to any suggestions here to fulfill my original goal.

Thank you for your collaboration! 😄

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

No branches or pull requests

1 participant