You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2022. It is now read-only.
Our projects heavily rely on :cljs-lambda :defaults :env. Also, we have production variables set in the :production profile (profiles.clj). Sometimes we forget to ...
add env variable to profiles.clj,
replace TODO with production value (waiting for CF template changeset to be deployed),
set env variable (for example #=(eval (System/getenv "STRIPE_API_KEY_SECRET"))) and dev value is deployed to production,
...
Repetitive tasks, prone to error, ... Boring, no one wants to do them.
Idea
My idea is to enhance cljs-lambda plugin with some validation task. Something like:
Are all env keys in project.clj set in profiles.clj?
Does profile.clj contain TODO as a value for any key?
Do these values differ?
Do you think it's good enhancement for cljs-lambda plugin or we should create new plugin? Honestly, not sure if I can come up with generic validator, with enough parameters, to suit needs for lot of people. Our cases are described above, but there can be lot of other cases. Also not sure if plugin can read all these combinations from project & profile files without merging, etc. Didn't test it yet, just thinking aloud.