Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•6mo ago•
2 replies
Tee

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
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.
Configuration
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to deploy Next.js 15 on Workers with GitHub
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3w ago
How to deploy workers in a monorepo using github actions?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
17mo ago
Github Auth Workers Project
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2mo ago
Github and Workers App
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago