import { ImageResponse } from "next/og"
export const runtime = "edge"
export const alt = "Evaluation Cards — a reporting layer over evaluation infrastructure"
export const size = { width: 1200, height: 630 }
export const contentType = "image/png"
// Brand mark URL. `ImageResponse` fetches `` at render time,
// so it needs an absolute URL — prefer NEXT_PUBLIC_SITE_URL (set on
// the Space), else fall back to the canonical remote.
const LOGO_URL =
(process.env.NEXT_PUBLIC_SITE_URL?.trim().replace(/\/+$/, "") ?? "") + "/logo-square.png"
const FALLBACK_LOGO_URL = "https://evalevalai.com/assets/img/logo-square.png"
export default function OpenGraphImage() {
const logoUrl = LOGO_URL.startsWith("http") ? LOGO_URL : FALLBACK_LOGO_URL
return new ImageResponse(
(