I am having troubles getting Nuxt Image to process dynamic images. If I run it in development mode the code below works as intended but if I run nuxt generate to create a static site (intend to host on Netlify without 3rd party image providers) the images don't get processed. Does anybody know a workaround for this? It's going to be a very image-heavy static site and if I can't get it to work I will have to ditch Nuxt for something else, which I'd rather not. There's some github issues on this but none resolved so far..
<masonry-wall :items="project.images">
<template #default="{ item, index }">
<nuxt-img
:src="pathForImage(item.path)"
:key="index"
sizes="sm:100px md:500px lg:1000px"
/>
</template>
</masonry-wall>
with project referring to a markdown file I load with Nuxt Content that looks like
---
id: "project-id"
title: "project-title"
year: "2022"
images:
- path: "image1.jpg"
- path: "image2.jpg"
- path: "image3.jpg"
- path: "image4.jpg"
---