import { ImageResponse } from 'next/og' import { NextRequest } from 'next/server' export const runtime = 'edge' export async function GET(request: NextRequest) { try { const { searchParams } = new URL(request.url) const tld = searchParams.get('tld') || 'com' const price = parseFloat(searchParams.get('price') || '0') const trend = parseFloat(searchParams.get('trend') || '0') const trendText = trend > 0 ? `+${trend.toFixed(1)}%` : `${trend.toFixed(1)}%` const trendColor = trend > 0 ? '#ef4444' : '#10b981' return new ImageResponse( (