Felix
Felix
Explore posts from servers
CDCloudflare Developers
Created by Felix on 6/25/2024 in #workers-help
Access to Cloudflare Images
well, so the 404 only happens whenever i add the { cf: { image: { width: 100 } } } part to the fetch call.
5 replies
CDCloudflare Developers
Created by Felix on 6/25/2024 in #workers-help
Access to Cloudflare Images
now messing around with setting up routes in the trigger section of my images worker so it loads on <mydomain>/images/ endpoint and I confirm the wroker is running by way of console logging but now i am getting a 404 saying the source image does not exist even though the URL is hard coded and i can access it when I enter it into the browser...
5 replies
CDCloudflare Developers
Created by Felix on 6/25/2024 in #workers-help
Access to Cloudflare Images
No description
5 replies
CDCloudflare Developers
Created by Felix on 6/25/2024 in #workers-help
Access to Cloudflare Images
Now, stripping everything back. I deployed this worker
const imageRequest = new Request(
"https://imagedelivery.net/<my image id>/public",
{
headers: request.headers,
},
);
return fetch(imageRequest, {
cf: {
image: {
width: 100,
height: 100,
},
},
});
const imageRequest = new Request(
"https://imagedelivery.net/<my image id>/public",
{
headers: request.headers,
},
);
return fetch(imageRequest, {
cf: {
image: {
width: 100,
height: 100,
},
},
});
it keeps serving the thing with the original size...
5 replies