import { ImageResponse } from '@vercel/og' export const config = { runtime: 'experimental-edge', } const font = fetch(new URL('../../assets/TYPEWR__.TTF', import.meta.url)).then( (res) => res.arrayBuffer() ) export default async function handler() { const fontData = await font return new ImageResponse( (
Hello world!
), { width: 1200, height: 630, fonts: [ { name: 'Typewriter', data: fontData, style: 'normal', }, ], } ) }