NextJS Static Site doesn't show images

NextJS SSG is not compatible with next/image. Set "unoptimized" to true within the images parameter of your nextjs project to fix this issue.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 10/09/2024 at 14:06
Last Updated on 10/09/2024 at 14:19
<p>A flower that represents NextJS with the text "Error: NextJS SSG does not show images" beneath it.</p>

NextJS SSG is not compatible with next/image. Set "unoptimized" to true within the images parameter of your nextjs project to fix this issue.

Subscribe

Unfortunately, Next14 or lower does not allow Next/Image to work with Static Site Generation.

To fix this, update the next config to make the images unoptimized.

<p>A screenshot of the next config that shows that we added an "unoptimized" parameter that is set to true within the images parameter.</p>

Looking to learn more about NextJS, ReactJS or web development?

Search our blog to find educational content on NextJS, ReactJS and web development.

Search our Blog

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe