I'm using the dynamic og image feature in the app dir.
Basically, I create a opengraph-image.tsx file and it will autogenerate me an og image.
However, in production the src of the og image is set to localhost:3000/og.png
instead of mywebsite.com/og.png
Any idea how to fix this? I don't have localhost:3000
specified anywhere in my project
My code is exactly like the next.js docs: https://nextjs.org/docs/app/api-reference/file-conventions/metadata/opengraph-image#dynamic-assets---generate-images-with-code
From the docs above, this is the ouput of the opengraph-image.tsx file. The src of the image is being auto generated and I cannot set it myself. I'm not sure how it generates the link.
<meta property="og:image" content="<generated>" />