You can. You do have to look at the wrangler code to figure out how the API works, but there is noth
You can. You do have to look at the wrangler code to figure out how the API works, but there is nothing stopping you from doing that
{"success":false,"errors":[{"code":8000013,"message":"Authorization failed"}]}https://api.cloudflare.com/client/v4/accounts/CLOUDFLARE_ACCOUNT_ID/pages/assets/uploadwww.lloydatkinson.net as a custom domain on the Pages project (which will update DNS, but its important that you add as a custom domain as well) const res = await fetchResult(`/pages/assets/upload`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${jwt}`,
},
body: JSON.stringify(payload),
});{"success":false,"errors":[{"code":8000013,"message":"Authorization failed"}]}https://api.cloudflare.com/client/v4/accounts/CLOUDFLARE_ACCOUNT_ID/pages/assets/uploadwww.lloydatkinson.net