Best approach to store "duplicate" config data

Hey Guys. First of all thank you for all the support.

Let’s imagine you have a config var called “APP_TOKEN” which is useful for more than one environment such as dev and test at the same time. Which is the best approach in this case? Split and Store the same config twice into dev.exs and test.exs or store it only once into config.exs that automatically works for both? I think it makes sense don’t repeat that code…

Thanks.

Generally, put the config in config.exs and just use the environment based config files if you want to override that for a certain environment.

2 Likes

Thank You