Access config key-value from within a config, from other key

How do I access a config key-value from within a config, from other key?



config :my_app123, :common,
    key1: "fdsafdsfds"



config :some_lib,
    key2:               # how can I refer to 'my_app123 > common > key1"?
1 Like

I usually do it like this:

key1 =  "fdsafdsfds"

config :my_app123, :common,
    key1: key1

config :some_lib,
    key2: key1
6 Likes