t-performance-dash icon indicating copy to clipboard operation
t-performance-dash copied to clipboard

Dynamic Twitter Cards

Open PatrickCleary opened this issue 3 years ago • 6 comments

PatrickCleary avatar Jan 17 '23 22:01 PatrickCleary

https://nextjs.org/blog/next-13-3#dynamic-open-graph-image-generation 13.3.0 is making this easier

devinmatte avatar Apr 07 '23 19:04 devinmatte

https://vercel.com/blog/introducing-vercel-og-image-generation-fast-dynamic-social-card-images

devinmatte avatar Apr 07 '23 19:04 devinmatte

I'd be happy to work on this. Made something similar for my own website earlier.

ariscript avatar Sep 20 '24 13:09 ariscript

Nice! I think the issue we ran up against before is that we're using nextjs static builds and not the nextjs server. Happy to help if you run into anything

devinmatte avatar Sep 20 '24 14:09 devinmatte

Finally have time to work on this, what was the intended functionality here? With a static build it's not possible to dynamically generate images, but we could point the twitter:card at some other URL which generates the image on demand. Another way is to just generate the images at build time but if there's any data in them it will get out of date quickly.

ariscript avatar Dec 18 '24 00:12 ariscript

@ariscript I think it was just to have more informative images when linking to the site. We're open to any proposals! :)

skaplan-dev avatar Dec 18 '24 02:12 skaplan-dev