import { ImageResponse, NextRequest } from 'next/server'; export const config = { runtime: 'edge', }; export default async function handler(req: NextRequest) { const { searchParams } = new URL(req.url); const signature = searchParams.get('signature') || 'Timur'; const [imageData, CaveatFontData, InterFontData] = await Promise.all([ fetch(new URL('../../../assets/background-pattern-og.png', import.meta.url)).then((res) => res.arrayBuffer(), ), fetch(new URL('../../../assets/Caveat-Regular.ttf', import.meta.url)).then((res) => res.arrayBuffer(), ), fetch(new URL('../../../assets/Inter-Regular.ttf', import.meta.url)).then((res) => res.arrayBuffer(), ), ]); return new ImageResponse( (