I figured out a way to do it: by introducing an intermediate component :my.email/client
, which is referenced by other components, and returns the component it is configured with. In the base profile it is configured with my.email/real-client
, and in dev profile with my.email/dev-client
.
This gist has more details: https://gist.github.com/walterl/70607e342ea8bf6cd3f0b5b4c97379c8
Is there maybe another/better way to achieve the same result?
@kevin.van.rooijen in the main thread is right; there’s no such mechanism. Instead you need to use dependencies between components to force an ordering…
{ :my/database { ,,, }
:my/initialised-database { :db #ig/ref :my/database }
:my/app {:db #ig/ref :my/initialised-database}}
Does anyone know to how to setup swagger doc when using duct ?
You'll probably want to use reitit, instead of ataraxy
you mean ataraxy is not working with swagger ?
afaik ataraxy doesn't have swagger support
Unless you set it up manually, but I don't have experience with that
Reitit has built-in swagger support
how about pedestal?
Never used that, sorry. There is a duct module for it though https://github.com/lagenorhynque/duct.module.pedestal
seems like duct template only support ataraxy router
There is a duct reitit router: https://github.com/yannvanhalewyn/duct-reitit
Thanks, I will give it a try