(I have found some threads in the forum that in one way or another touch this topic, but none of them solves this question in a clear way.)
As you know, build time configuration is located in
config/config.exs, Mix uses that file to generate the application resource file, which contains the hard-coded application environment, among other things.
On the other hand, we have now
config/releases.exs, which is evaluated at runtime, but only for releases.
Now, in my project everything is set via system environment variables regardless of the type of server. So, for example I have
config :avrora, registry_url: System.fetch_env!("AVRO_REGISTRY_URL")
and a dozen others like that.
Is it correct that despite the intended uniformity, I have to repeat that line in
config/config.exs and in
Is there a way to avoid that duplication? I was thinking about creating
config/common.exs, to be imported in both files, but the docs for
mix release say you cannot use
import_file (does it mean