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( (
{description}
krema.eth