Description
When users share an AIAtlas model page on platforms like Twitter, LinkedIn, or Discord, it currently shows a generic site preview. We should use Next.js's native ImageResponse to generate dynamic OpenGraph images on the fly that display the specific model's name, provider, and key stats.
Expected Behavior
- OG Image Route: Create an
opengraph-image.tsx file inside the src/app/models/[slug]/ directory.
- Dynamic Data: Fetch the model data based on the slug inside this file.
- Image Design: Use standard HTML/CSS (supported by satori) to design a visually appealing card containing the
ProviderLogo, Model Name, and perhaps a quick stat (like "Context Window: 128k").
- Metadata Update: Ensure the model page's
generateMetadata function correctly points to this new dynamic image.
Constraints
- Rely strictly on the native
@vercel/og functionality provided by Next.js 14. Do not install heavy image generation libraries like Puppeteer.
Labels
enhancement, next.js, growth, v2-roadmap
Description
When users share an AIAtlas model page on platforms like Twitter, LinkedIn, or Discord, it currently shows a generic site preview. We should use Next.js's native
ImageResponseto generate dynamic OpenGraph images on the fly that display the specific model's name, provider, and key stats.Expected Behavior
opengraph-image.tsxfile inside thesrc/app/models/[slug]/directory.ProviderLogo, Model Name, and perhaps a quick stat (like "Context Window: 128k").generateMetadatafunction correctly points to this new dynamic image.Constraints
@vercel/ogfunctionality provided by Next.js 14. Do not install heavy image generation libraries like Puppeteer.Labels
enhancement,next.js,growth,v2-roadmap