i have an astro example for prerendering bluesky embeds using my lib, could work with next.js as well though it might be finicky
github.com/mary-ext/astro…
If you have your head in this particular part of the code, maybe you can help me. My org helps journalists share PDFs. On most social networks, when somebody posts a PDF, the crawler looks for OG data and we serve it as HTML — cool! Alas, BlueSky detects the PDF and doesn’t crawl for OG data.