rm open graph edge functions (search)

This commit is contained in:
andr-ew 2023-06-21 13:05:20 -05:00
parent ace71f52d4
commit 3b650b0ea5

View File

@ -1,11 +0,0 @@
import OpengraphImage from 'components/opengraph-image';
import { getCollection } from 'lib/shopify';
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 });
}