Can someone point me in the right direction? I want config for duct.profile/local
in local.edn
to override our duct.profile/test
configuration
so if I have local.edn:
{:foo.api/router {:request-diffs? false
:pretty-router-exceptions false}}
and test.edn:
{:foo.api/router {:request-diffs? true} ... }}
I want :request-diffs? false
to override the value in test.edn
I can see both respective keys and their values under their profiles when I call read-config
but once we call prep-config
with both profiles the value is always true
AFAIK you could look into the place where you prepare the config and search for profiles there.
For example, the default dev.clj
...
(def profiles
[:duct.profile/dev :duct.profile/local])
...
(integrant.repl/set-prep! #(duct/prep-config (read-config) profiles))