Tech
Deploying to Cloudflare Pages from pure Python — no Node, no wrangler
I run a Python-only content pipeline. It generates a static site, and it needs to put that site on Cloudflare Pages, unattended, on a schedule.
The official way to do that is wrangler . Wrangler is Node. Adding a Node toolchain to a Python service just to copy files to a CDN felt like the wrong trade, so I went the other way: I read what wrangler actually sends over the wire and reimplemented it with http.client and the standard library.
It works. It took longer than it should have, bec...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to