opengraph-image.jpg in public folder #49503
-
SummaryHi everyone, I'm trying to set all the metadata in my application and I encountered an error (unless I'm doing something wrong) with the og:image implementation. According to the documentation, I can drop a file named "opengraph-image.jpg" somewhere in the "route segment". I tried leaving it in the public folder. And seemingly everything is ok because in devtools in I see , but in sharing debugger the image does not display. Only after uploading the file to /app did everything work. Is this a bug or is this what I should do? Ps: favicon.ico in public folder works perfectly. Thanks! <3 Additional informationError message at sharing debugger "Could not be processed as an image because it has an invalid content type" when the image is in public folder ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Same problem here |
Beta Was this translation helpful? Give feedback.
-
The file does not go in the Secondly, ensure you are using export const metadata = {
metadataBase: new URL('https://acme.com'),
} |
Beta Was this translation helpful? Give feedback.
The file does not go in the
public/
folder, but instead theapp/
folder 👍Secondly, ensure you are using
metadataBase
for your layout or page: