import { getCollections } from "lib/store/products"; import { ImageResponse } from "next/og"; export const runtime = "edge"; export const contentType = "image/png"; export const size = { width: 1200, height: 630, }; export default async function Image({ params, }: { params: { collection: string }; }) { const collections = await getCollections(); const collection = collections.find((c) => c.handle === params.collection); const title = collection?.title || "Collection Not Found"; return new ImageResponse( (