Files
sent-shop/app/search/[collection]/opengraph-image.tsx
2026-01-19 20:21:14 +01:00

12 lines
397 B
TypeScript

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