Publish Zip with CF REST API
How do I publish a zip containing static site assets? I just want to send the zipped files to the API and create a new deployment, nothing fancy.
2 Replies
I don't believe the direct upload API is documented, and therefore subject to change at any time, but you can poke around at https://github.com/cloudflare/wrangler2/tree/main/packages/wrangler/src/pages
I would instead recommend just using
wrangler
and something like wrangler pages publish dist
hmm ok
i do wish the zip upload endpoint were a thing, it's the difference between a 5 line shell script and npm global-installing a whole new dedicated CLI utility just for my personal website