nextjs-og-image-css-limitations

Community

Fix Next.js OG image CSS errors fast

Authorstrataga
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Next.js OG image generation with next/og ImageResponse can fail during prerendering when CSS display values are restricted to a subset supported by the rendering engine (Satori).

Core Features & Use Cases

  • Guides replacing unsupported CSS display values with display:flex and alignSelf:flex-start to avoid full-width stretching.
  • Prevents OG image prerender errors during build by aligning with Satori's CSS subset.
  • Applicable to Next.js apps using next/og ImageResponse in server components or API routes for dynamic OG images.

Quick Start

Identify any elements using display: inline-block in OG image components and replace with display: flex and alignSelf: flex-start. Then test by running the Next.js build and visiting the OG image route to confirm there are no errors.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nextjs-og-image-css-limitations
Download link: https://github.com/strataga/claude-skill-inception/archive/main.zip#nextjs-og-image-css-limitations

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.