How can I get an image directly from the filesystem in Next.js App Router API Route? #82758
Unanswered
carlos-dubon
asked this question in
Help
Replies: 1 comment
-
I believe this should work, if you add |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m trying to render an image inside an ImageResponse in an App Router API Route.
Here’s my current code:
The problem:
import myImage from './myimage.png'
doesn’t seem to work inside ImageResponse.What’s the correct way to reference or load local images in this context?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions