commerce/app/search/[collection]/opengraph-image.tsx
Kristian Arvidsson db63db1331
feat/add-geins-as-provider (#1)
* feat: add geins as provider
2024-11-28 11:24:28 +01:00

12 lines
386 B
TypeScript

import OpengraphImage from 'components/opengraph-image';
import { getCollection } from 'lib/geins';
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 });
}