Okay, that makes sense now, thanks for the answer! Then, I am fixing my issue in the wrong way.
I am writing a library and publishing it to hex. I want to make this library configurable I use compile env values throughout. But, as config.exs of my library won’t get published to hex as well as not available to the user of the library, I want to provide some defaults. As far as I understood I have only 2 options at this:
- Use
compile_env/3and provide defaults there. But that seems like a bad idea, as all of my defaults will be scattered. - Use the
:envkey in application. Which works a bit differently than I expected and not an option for me.
Am I missing something? Is this truly the only available options?


















