Closed baptistejamin closed 6 days ago
I can confirm - experienced this in a project. I used a relative path to work around the issue as I was only prerendering the OG image rather than needing runtime support ...
Thank you for the issue, sorry for the delay. This should be working correctly in 3.0.0-rc.54.
Hello there :)
We have the current Nuxt configuration:
I spent some time discovering why images could not be discovered with a such component:
It turns out there could be an issue with this fonction:
https://github.com/nuxt-modules/og-image/blob/4e0fa43a92f7bad8544647fbd0e8e471d54b96e2/src/runtime/nitro/og-image/satori/plugins/imageSrc.ts#L12
root:public
is hardcoded. In my case, with a custom srcDir, storage key becomes:root:src:public:opengraph:background.png
and notroot:public:opengraph:background.png