nextjs-build-website-og-preview

Community

Fix social previews with OG + Twitter cards.

Authorsdcorejs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents broken or missing social preview images on Zalo, Messenger, Facebook, and Twitter by setting up a reliable Open Graph and Twitter Card image pipeline with a static fallback and optional dynamic per-page generation.

Core Features & Use Cases

  • Static OG fallback: Provides public/og-default.png (1200×630, <=200 KB) to guarantee a baseline preview when a page does not override metadata.
  • Dynamic per-page OG rendering: Generates route-specific images via opengraph-image.tsx using @vercel/og in the Next.js App Router.
  • Vietnamese-ready typography: Loads a diacritic-capable font for Vietnamese OG titles to avoid boxed glyphs in previews.
  • Platform verification workflow: Steps to validate previews after deploy using Facebook Sharing Debugger and Zalo-specific cache/absolute-URL requirements.

Quick Start

Use the skill to create public/og-default.png, wire opengraph-image.tsx (root and per-route as needed), then verify the production URL preview in Zalo and Facebook before marking the build complete.

Dependency Matrix

Required Modules

@vercel/og

Components

assetsreferences

💻 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-build-website-og-preview
Download link: https://github.com/sdcorejs/sdcorejs-agent/archive/main.zip#nextjs-build-website-og-preview

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 471,000+ vetted skills library on demand.