next-sanity-image icon indicating copy to clipboard operation
next-sanity-image copied to clipboard

Serverside rendering support

Open CamiloCagliolo opened this issue 2 months ago • 1 comments

So, this library does handle a lot of stuff automatically for me which is nice. What I don't entirely like is the fact that I'm forced to use client side rendered images. That makes some images take longer than what I'd like to load in the client- hence making for a worse UX.

Please correct me if I'm wrong, but if we get rid of the React-specific hooks like useMemo, the main function can be called from server side async components, right?

I'm a bit of a newbie here, so please correct my observation if I'm mistaken.

CamiloCagliolo avatar Nov 17 '25 16:11 CamiloCagliolo

Came looking for the same thing

michaelmannucci avatar Nov 17 '25 20:11 michaelmannucci