duct

ccann 2019-10-23T21:57:52.014700Z

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

ccann 2019-10-23T22:33:18.015300Z

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} ... }}

ccann 2019-10-23T22:33:48.015800Z

I want :request-diffs? false to override the value in test.edn

ccann 2019-10-23T22:35:11.016800Z

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

2019-10-23T23:05:26.018900Z

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))