import { title, description, font } from '@/constants' import { ImageResponse } from 'next/og' export const runtime = 'edge' export const alt = title export const size = { width: 1200, height: 630 } export const contentType = 'image/png' export default async function Image() { const fontDataBold = await fetch( new URL('./opengraph-image-assets/HankenGrotesk-Bold.ttf', import.meta.url) ).then((res) => res.arrayBuffer()) const fontDataRegular = await fetch( new URL( './opengraph-image-assets/HankenGrotesk-Regular.ttf', import.meta.url ) ).then((res) => res.arrayBuffer()) return new ImageResponse( (

{title}

{description}

krema.eth

), { ...size, fonts: [ { name: 'Hanken Grotesk', data: fontDataBold, style: 'normal', weight: 700 }, { name: 'Hanken Grotesk', data: fontDataRegular, style: 'normal', weight: 400 } ] } ) }