Because sometimes, the conventional way just doesn't cut it.
Welcome to API LEAKER, the "creative" solution to Cloudflare's stubborn API key management. When environment variables keep getting overridden in both Cloudflare Pages and Workers, and you're out of options, we're your last resort.
Because both Cloudflare Pages and Workers decided to play hardball with our environment variables, and we decided to play harder. This is our hacked-together way to access API keys using Fetch when all else fails.
1. We store API keys... somewhere 🤫
2. Your Cloudflare Pages app fetches them
3. Magic happens ✨
4. Your app gets its API keys
Is this secure? Absolutely not.
Should you use this in production? Probably not.
Are we using it anyway? You bet!