import { ImageResponse } from 'next/og'; import LogoIcon from './icons/logo'; export type Props = { title?: string; }; export default async function OpengraphImage(props?: Props): Promise { const { title } = { ...{ title: process.env.SITE_NAME }, ...props }; return new ImageResponse( (

{title}

), { width: 1200, height: 630, fonts: [ { name: 'Inter', data: await fetch(new URL('../fonts/Inter-Bold.ttf', import.meta.url)).then((res) => res.arrayBuffer() ), style: 'normal', weight: 700 } ] } ); }