Open honmaple opened 11 months ago
š Thanks for reporting!
A maintainer will take a look at your issue shortly. š
In the meantime: We are working on Viper v2 and we would love to hear your thoughts about what you like or don't like about Viper, so we can improve or fix those issues.
ā° If you have a couple minutes, please take some time and share your thoughts: https://forms.gle/R6faU74qPRPAzchZ9
š£ If you've already given us your feedback, you can still help by spreading the news, either by sharing the above link or telling people about this on Twitter:
https://twitter.com/sagikazarmark/status/1306904078967074816
Thank you! ā¤ļø
Preflight Checklist
Problem Description
When some config include
_
, and I read it from environment variables,I will change_
to other string, such as__
But after set
envPrefix
, if I want to setserver.listen_port
, I must useAPP__LISTEN__PORT
rather thanAPP_LISTEN__PORT
Proposed Solution
envPrefix +
_
would not affect envKeyReplacer, so I can set vars byNot
Alternatives Considered
For quick fixed, change
getEnv
functionAdditional Information
No response