How do I generate a social share image for each Next.js page?
Summary As of November 2026, generate a route’s share image with ImageResponse from next/og: defaults are 1200 × 630 and the bundle limit is 500KB. Dynamic route parameters are promises from v16.0.0. Start with import { ImageResponse } from 'next/og'
Not for Next.js Pages Router head metadata.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread nextjs-open-graph-image-opengraph-image-tsx-imageresponse and help me try it