Why does next/og
only work on the edge when @vercel/og
works perfectly fine in Node?
#60003
Unanswered
akshatmittal
asked this question in
App Router
Replies: 1 comment
-
it looks like the docs have removed the description of having to use the edge runtime, I'm using nodejs now, and it works well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically title.
In order to use
ImageResponse
fromnext/og
, you need to set the route or page to use theedge
runtime and it complains if you don't do it. I don't quite understand why, especially since@vercel/og
works perfectly fine innodejs
runtime.I literally just replaced the
ImageResponse
object to be imported from@vercel/og
instead ofnext/og
and everything just works.Any reason, technical or otherwise, on why this limitation exists?
Beta Was this translation helpful? Give feedback.
All reactions