Avoid using Mix.env at runtime
Although the code checked for Mix, in a production environment we found that we'd fail to query Mix.env()
with:
GenServer.call(Mix.State, {:get, {Map, :get, [:env, :dev]}}, :infinity)
Although the code checked for Mix, in a production environment we found that we'd fail to query Mix.env()
with:
GenServer.call(Mix.State, {:get, {Map, :get, [:env, :dev]}}, :infinity)