Docker image question: NextJS won't render images in production
Unanswered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
I have a nextjs app that is using images from the public folder . It works in development but not in production. I include images by the following way:
#Unknown Channel
<p><img src="/image.png" alt="Landing page image" title="title" /></p>
</>
The docker file is attached.
#Unknown Channel
<p><img src="/image.png" alt="Landing page image" title="title" /></p>
</>
The docker file is attached.
3 Replies
Fire ant
Check on your docker container, make sure it has public folder and your images
Check on logs too
Asiatic LionOP
Thank you @Fire ant !