I'm a little confused about what the src field should be when passed to the getImage() function.
I'm using an image field from a content collection (not imported directly). It has a structure like this:
{
src: {
src: '/@fs/Users/.../black-standard-painting.png?origWidth=1792&origHeight=1024&origFormat=png',
width: 1792,
height: 1024,
format: 'png',
fsPath: '/Users/.../black-standard-painting.png'
},
alt: "The ... Study Resources"
}
When I try to generate a new image (for my og fields) with getImage, what src value shoudl I use? passing the image object errors, passing the image.src.src errors and passing the image.src.fsPath works -- but the resulting URL is a 404 on production (Vercel). How should I be generating image URLS in this case?