wrangler deployment overwrites env vars in the worker #8219
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Practice 1 :
But I found that doing in this way won't trigger cicd properly when I connect my github repo to the worker because the wrangler.toml file is git ignored, so I have to manually run the deploy cli command everytime. (This is the practice I go with.) Practice 2:
By contrast, I think this way could do the cicd properly when we connect the github repo to the worker. whatever you go with, don't directly modify the env vars in the cloudflare dashboard, because this is not a good practice referenced from the docs. I think both are good to follow, because they basically make the wrangler.toml the single source of truth. Personally, I perfer the first one. |
Beta Was this translation helpful? Give feedback.
Practice 1 :
But I found that doing in this way won't trigger cicd properly when I connect my github repo to the worker because the wrangler.toml file is git ignored, so I have to manually run the deploy cli command everytime.
(This is the practice I go with.)
Practice 2: