vibe coding
Dynamic OG Image Generator (Next.js)
Create a dynamic Open Graph image generation endpoint in Next.js using @vercel/og.
Your Prompt
Write the code for a Next.js App Router dynamic Open Graph (OG) image generator using `@vercel/og`. The image should be for a blog post and display the post's title and author. The function should take `title` and `author` as search parameters from the URL. Show the complete code for the `app/api/og/route.tsx` file.