Next.js Discord

Discord Forum

Next 13 opengraph image url

Answered
Manx Shearwater posted this in #help-forum
Open in Discord
Avatar
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"/>

3 Replies

Avatar
Ray
Answer
Avatar
Manx ShearwaterOP
Thank you
Funny thing is i had hardcoded the url :lolsob: