Uploading assets for "direct deployment" CF Pages
We're building our CF page in our own service rather than using the CF build service. Our goal is to create a new (preview) deployment, retrieve the URL for that deplyoment (to use elsewhere), then upload the build assets to that deployment. How would we do that with the REST API?
I see the docs for creating a new deployment, but now how to push build assets to it: https://developers.cloudflare.com/api/operations/pages-deployment-create-deployment
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
1 Reply
You can’t upload with the REST API. You have to use wrangler to upload that