Next 13 opengraph image url
Answered
Manx Shearwater posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Manx ShearwaterOP
Hi, I have a next 13 applications with two domains one dev and one production. My issue is that the open graph image is generated with the production domain for some reason and I can't find out how to control this. This prevents me from being able to test if it is working properly. I have used the example from next docs: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image#generate-images-using-code-js-ts-tsx
<content="https://www.investorweb.no/ir-channel/ORK/event/d0fd9b1b-dda7-4d31-ac7e-ad3fe1921d7f/opengraph-image?1cd7127447a82454"/>
Answered by Ray
you can change the url with
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
metadataBase
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/743561772069421169/3c5d689eee4459a24fc420063411c016.webp?size=256)
Ray
you can change the url with
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
metadataBase
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#metadatabase
Answer
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Manx ShearwaterOP
Thank you
Funny thing is i had hardcoded the url ![:lolsob:](https://cdn.discordapp.com/emojis/753870958489632819.png)
![:lolsob:](https://cdn.discordapp.com/emojis/753870958489632819.png)