import { ImageResponse } from "next/og"; import { type NextRequest } from "next/server"; export const runtime = "edge"; export async function GET(request: NextRequest) { const { searchParams } = request.nextUrl; const title = searchParams.get("title") || "Belgian Bitcoin Embassy"; const type = searchParams.get("type") || "default"; const subtitle = searchParams.get("subtitle") || (type === "blog" ? "Blog" : type === "event" ? "Event" : "Bitcoin Meetups & Education in Belgium"); return new ImageResponse( (
B
{subtitle}

60 ? "40px" : title.length > 40 ? "48px" : "56px", fontWeight: 800, color: "#ffffff", textAlign: "center", lineHeight: 1.15, margin: 0, letterSpacing: "-1px", }} > {title}

belgianbitcoinembassy.org
No hype, just signal
), { width: 1200, height: 630, }, ); }