Hi! I want to download my homepage images on front so I can transform/optimize my images during build. But I can't find a good explanation about how to tell Prismic, which images should be downloaden. I tried something like this:
The documentation on this is pretty vague. I was able to make it work after some trial and error:
shouldDownloadFiles: {
'homepage.data.hero_image': true, //non-repeatable image field
'homepage.data.body.featured_service.primary.service_image': true, // image field in a slice
},
I think if the image you're referencing is contained in a slice, you'll simply need to add the "primary" field as shown in my example.