Where to put og image?
Unanswered
Red-breasted Merganser posted this in #help-forum
Red-breasted MerganserOP
I read the docs and it says : Add an opengraph-image.(jpg|jpeg|png|gif) image file to any route segment.
does that mean I can put it in the root app folder?
I put the og image in my app folder, but it did not generated for me.
Any ideas?
does that mean I can put it in the root app folder?
I put the og image in my app folder, but it did not generated for me.
Any ideas?
2 Replies
@Red-breasted Merganser I read the docs and it says : Add an opengraph-image.(jpg|jpeg|png|gif) image file to any route segment.
does that mean I can put it in the root app folder?
I put the og image in my app folder, but it did not generated for me.
Any ideas?
American Wirehair
Hi, how do you know it wasn't generated? In my case i tested in a nested directory, like /app/articles/[slug]/opengraph-image.js and it generated my dynamic OG.
In case you want to see this in localhost, I suggest you to install the Chrome plugin.
In case you want to see this in localhost, I suggest you to install the Chrome plugin.
Red-breasted MerganserOP
OH my god so it worked in my localhost but not in production