Rendering Server Component containing Next Image component to static html in route handler gives error #62575
Unanswered
charlesfrisbee
asked this question in
App Router
Replies: 1 comment 1 reply
-
Uhh I am not sure, I mean, you probably need to also include the JavaScript for the image, and such? sounds like the problem will just keep on growing. Why not just make a grouped route, that escapes the root layout and just return the Image there? like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to render a server component which contains the Next Image component to static html, and expose this on a route handler:
As per the answer to #55135 I am able to get the rendered html of a server component (provided there is no Next Image component in the markup). In the presence of a component containing the Next Image component I get the following error:
I assume it has something to do with the client functionality of the Next Image component, but was wondering if there was a workaround or change needed in the output stream before passing it as a response
Beta Was this translation helpful? Give feedback.
All reactions