#cloudflare + images

7 messages · Page 1 of 1 (latest)

fathom hound
#

why isn't it possible to use @astrojs/image to build the images like it would without SSR, then use @astrojs/cloudflare for the routes with SSR?

torpid bluff
#

Right now we don't support pre-building images for SSR routes, they're rendered at runtime

#

Which is both a good thing and a bad thing, really. Rendering images at runtime is super powerful and dynamic, but yeah it necessitate that your host supports it

#

A semi-workaround when using astro:assets instead of the soon-to-be-deprecated @astrojs/image is that images on pre-rendered pages are also pre-rendered

fathom hound
#

so I have to ditch :assets if I want to pre-render images for every route?

torpid bluff
#

Unfortunately, at this time, yeah

#

We're hoping to add something for that use case in the future, for sure, but it might take a while