DEV Community

Discussion on: Use Front Matter Images for Twitter Card Images in GatsbyJS

Collapse
gcdcoder profile image
Gustavo Castillo

It's better to fetch site's domain from siteMetadata in the GraphQL query instead of using window.location.origin.

Collapse
gcdcoder profile image
Gustavo Castillo

Another thing I notice if that if you test it with your the same twitter account that is in the meta tags, it doesn't display the image, it took me a while to notice this until I test it with a different twitter account, I hope it helps.