#How to render image dynamically in Nuxt?
3 messages · Page 1 of 1 (latest)
Have you tried to put the images into the public folder and use a relative URL to access them?
<img :src="`/images/${activeIndex === index ? 'minus' : 'plus'}.webp`" class="w-4 h-4" />
The difference between the public and assets folders is described here: https://nuxt.com/docs/getting-started/assets