Workers GitHub deploy clears runtime variables

Hi guys šŸ‘‹ I’m running a Hono API on Cloudflare Workers, deployed with the GitHub integration for automatic deployments. Each time I merge a PR, all my runtime variables get wiped, which breaks the API for users. I already have keep_vars = true in my wrangler.toml (this used to work fine before), but recently deployments started clearing the vars again. Has anyone else run into this? Any ideas on how to resolve it? I can share the repo if that helps. Link to the page i read: https://developers.cloudflare.com/workers/wrangler/configuration/#source-of-truth
Cloudflare Docs
Configuration
Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products.
2 Replies
huntfp
huntfp•3mo ago
I'm having the same issue
fawwaz
fawwaz•4w ago
did you guys manage to figure out why it's happening?

Did you find this page helpful?