Astro Image component
I'm using the new experimental stuff and using Astro's
Image
component, but when I deploy the images don't work because it's a url like
which is giving error code: 1042
3 Replies
You should read the Astro docs… specifically the Cloudflare adapter and the assets docs. I don’t have the link handy, as I’m on mobile, but Workers (and Pages) in SSR mode don’t support sharp. You need to pre-render or do other things.
I did, but thought I could do something this
Instead I just set it to "hybrid" output and it works
In Cloudflare, to use SSR, you need to use the Cloudflare image resizing option