Reputation: 11
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.
Upvotes: -1
Views: 4787
Reputation: 420
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" />
Upvotes: 3