import { ImageResponse } from "next/og"; import { domain } from "@/utils/domain"; export async function GET(request: Request) { const { searchParams } = new URL(request.url); const prompt = searchParams.get("prompt"); return new ImageResponse( (
{prompt && prompt.length > 100 ? prompt.slice(0, 97) + "..." : prompt}
), { width: 1200, height: 630, }, ); }