Mix.env() is not available in runtime.exs, and it's not clear from the text where the production routing table should go. This clarifies that it should be in runtime.exs and demonstrates the use of config_env() (instead of Mix.env())
Fixes #1535.
I'm not sure if overwriting the config is idiomatic, or if the default single entry routing table should be in a non-prod check?
Mix.env()
is not available in runtime.exs, and it's not clear from the text where the production routing table should go. This clarifies that it should be inruntime.exs
and demonstrates the use ofconfig_env()
(instead ofMix.env()
)Fixes #1535.
I'm not sure if overwriting the config is idiomatic, or if the default single entry routing table should be in a non-prod check?