Open Graph image points to development url
Unanswered
Miniature Pinscher posted this in #help-forum
Miniature PinscherOP
For some reason, in my production environment, the Open Graph image url is the url of my development domain. So it does not load for people not authenticated. Is this a Vercel bug or do I need to do something?
8 Replies
@Miniature Pinscher For some reason, in my production environment, the Open Graph image url is the url of my development domain. So it does not load for people not authenticated. Is this a Vercel bug or do I need to do something?
Do you have
metadataBase configured to your production domain? https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase@joulev Do you have `metadataBase` configured to your production domain? https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
Giant panda
I had this same issue and the metadataBase configuration did not fix it. I had to manually set the og image url to the production domain.
Silver Fox
I've also run into this problem. Setting metadataBase did not override the domain. Its a bit frustrating tbh.
@Silver Fox I've also run into this problem. Setting metadataBase did not override the domain. Its a bit frustrating tbh.
Giant panda
Yep, I had to manually set the og image url in the metadata config.
Pyramid ant
I
I'm facing a problem related to og: even if I see the meta correctly generated in the production enviroment... I don't see the image preview generated when pesting it!!!!
can you help?
https://www.bigweb.club/en/home
can you help?
https://www.bigweb.club/en/home
metadata in prod:
folder structure: