mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
12 lines
402 B
TypeScript
12 lines
402 B
TypeScript
import OpengraphImage from "components/opengraph-image";
|
|
import { getCollection } from "lib/commercetools/queries";
|
|
|
|
export const runtime = "edge";
|
|
|
|
export default async function Image({ params }: { params: { collection: string } }) {
|
|
const collection = await getCollection(params.collection);
|
|
const title = collection?.seo?.title || collection?.title;
|
|
|
|
return await OpengraphImage({ title });
|
|
}
|