mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
12 lines
391 B
TypeScript
12 lines
391 B
TypeScript
import OpengraphImage from 'components/opengraph-image';
|
|
import { getCollection } from 'lib/shopware';
|
|
|
|
export const runtime = 'nodejs';
|
|
|
|
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 });
|
|
}
|