-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use absolute url for og:image tag #270
Conversation
@Balastrong is attempting to deploy a commit to the Tanstack Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second though, maybe we should be using one of Vercel's publish URL environment variables?
https://vercel.com/docs/projects/environment-variables/framework-environment-variables
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Agree, that would be probably more correct! Side note, do we even have those variable available? I mean |
Since Start uses Vinxi, you should be able to use the same variables used for SolidStart and Vite. |
Done! I also changed the Let's see what happens in the vercel preview :D |
Sharing https://tanstack.com/ in social networks (like linkedin) does not properly show the og:image in the preview.
See images
Our current value is
/_build/assets/og-pGgYlhyc.png
but it seems only absolute urls are valid.I'm not sure this works as I cannot reliably test it locally but I'd probably give it a try.
I think other pages may be affected but let's do it step by step (or if anyone has a better solution is welcome!)