#Image preview not showing
1 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
This is my code
how do you know that image preview is not loading the preview?
So, I put the link both in facebook and discord just to check this. Turns out that the preview image doesn't show up
can we see the link to troubleshoot?
see? nothing
its because of this link
https://bookworms-of-hstu-ozwuqyt2q-prince-khans-projects-87138778.vercel.app/og-image.jpg
this is weird because it shouldve used the correct link
const siteUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: 'http://localhost:3000';
im not sure why its using the branch deployment link instead of the production link
How to solve this then?
try changing it to
const siteUrl = process.env.NODE_ENV === "development"
? `http://localhost:3000/`
: 'https://bookworms-of-hstu.vercel.app/';
made a change but still it is not doing as expected
thats so weird...
it works @buoyant flume , its just those platform caches previous result
just need to wait few hours for the cache to refresh