Home > Blockchain >  images from static folder in nuxt 3 doesn't show
images from static folder in nuxt 3 doesn't show

Time:12-30

I'm using Nuxt 3

and this is directories structure

enter image description here

images are loaded like this

<img src="/images/index/pic-left.svg" />

I've also tried (start without / )

<img src="images/index/pic-left.svg"  />

and it didn't worked again

What's the problem ?

CodePudding user response:

In Nuxt3, the directory is now public and not static.

So it should be /images/index/pic-left.svg.

  • Related