import { ImageResponse } from 'next/og'; // Shared Open Graph card for /guides/* articles. Each guide directory ships a // tiny opengraph-image.tsx that calls this with its title + tag — the design // stays consistent and Google Discover gets a ≥1200px image per article. export const OG_SIZE = { width: 1200, height: 630 }; export function articleOgImage(opts: { title: string; tag: string }): ImageResponse { return new ImageResponse(
{/* Indigo→cyan accent bar along the top edge */}
M
BuildMyMCPServer
{opts.tag}
60 ? '56px' : '66px', fontWeight: 700, lineHeight: 1.08, letterSpacing: '-0.03em', maxWidth: '1000px', }} > {opts.title}
MCP guides
buildmymcpserver.com/guides
, { ...OG_SIZE }, ); }