How to render image dynamically in Nuxt?
The page renders but the image does not display
3 Replies
Have you tried to put the images into the public folder and use a relative URL to access them?
`
The difference between the public and assets folders is described here: https://nuxt.com/docs/getting-started/assets
www.lichter.io
Vue 3: How to load dynamic images
With the release of Vue 3, a lot of things became easier. Unfortunately, loading dynamic assets such as images is not one of them. In the following article, I want to demystify the process of dynamic asset loading in Vue 3 or Nuxt 3 and explain why static assets can be loaded easily...