Next.js image display as broken image on some pages

3.8k Views Asked by At

Using Next Image works properly on root files in the page folder, but displays as a broken image on files in the sub-Folder in the page folder.enter image description here

1

There are 1 best solutions below

0
On

when you want import image or file in NextJs, you dont need write Public folder.

And you have to give width and height of the tag image! please read this link

<Image width={200} height={200} src={"/static/assets/img/muna_logo.png"} alt="muna logo" />