shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
zach 2021-05-19T08:49:11.019600Z

Hello! When using shadow-cljs, would passing --config-merge on compile be a good place to give environment variables? e.g: building for production doing a --config-merge '{:closure-define {<http://your.app/config|your.app/config> secretkey "s1234"}

thheller 2021-05-19T08:50:15.020Z

yes, that is what it was made for

thheller 2021-05-19T08:50:59.020800Z

although you shouldn't put "secrets" into your build ever, in JS nothing is "secret"

thheller 2021-05-19T08:51:46.021700Z

but in general yes, config merge or #shadow/env work for this

zach 2021-05-19T08:55:42.021900Z

Awesome, thank you!