Fork me on GitHub
#shadow-cljs
<
2021-05-19
>
zach08:05:11

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 { secretkey "s1234"}

thheller08:05:15

yes, that is what it was made for

thheller08:05:59

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

thheller08:05:46

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

zach08:05:42

Awesome, thank you!