Vercel recently released a library to make it easier to generate OG images in serverless functions. This is a short tutorial I wrote on how to use it in a Next.js application.
Show HN: Create OpenGraph images for your Next.js application | Heykuki News