Blooper: The Disappearing Cloudflare Variables
The Blunder
I kept adding MATRIX_URL and MATRIX_SERVER_NAME to the Cloudflare dashboard as plain text environment variables. Every time I ran wrangler deploy, they vanished into the void.
The "Duh" Moment
Wrangler is a neat freak. If a plain text variable isn't explicitly written in the wrangler.toml file, Wrangler deletes it from Cloudflare during deployment to keep the deployed state perfectly synced with the repository configuration. (Secrets, thankfully, are spared from this purge).
The Fix
Just hardcode the non-secret URLs in wrangler.toml under [vars]. Problem solved! 🤦♂️
Comments
How to Increase Free Tier Memory on AWS EC2
How to Increase Free Tier Memory on AWS EC2
How to Increase Free Tier Memory on AWS EC2 - Dive into the details of how to increase free tier memory on aws ec2 with this quick guide.
Blooper: Hardcoded Content Links cause 404s
Blooper: Hardcoded Content Links cause 404s
Why you should never hardcode UI navigation links to specific markdown file paths.
