import { ImageResponse } from "next/og"; import { readFile } from "node:fs/promises"; import { join } from "node:path"; export const alt = "Aeris — Real-Time 3D Flight Tracking"; export const size = { width: 1200, height: 630 }; export const contentType = "image/png"; export default async function Image() { const imageData = await readFile( join(process.cwd(), "public", "aeris-hero.png"), ); const base64 = imageData.toString("base64"); const heroSrc = `data:image/png;base64,${base64}`; return new ImageResponse(
{/* Hero background image */} {/* Full dark vignette overlay */}
{/* Content overlay pinned to bottom */}
{/* Title */}
Aeris
{/* Tagline */}
Real-Time 3D Flight Tracking
{/* Divider + pills row */}
{["Altitude-Aware", "Live ADS-B Data", "Free & Open Source"].map( (label) => (
{label}
), )}
{/* URL badge top-right */}
aeris.edbn.me
, { ...size }, ); }