From 3b650b0ea55585358b543e005527f67cb98eac20 Mon Sep 17 00:00:00 2001 From: andr-ew Date: Wed, 21 Jun 2023 13:05:20 -0500 Subject: [PATCH] rm open graph edge functions (search) --- app/search/[collection]/opengraph-image.tsx | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app/search/[collection]/opengraph-image.tsx diff --git a/app/search/[collection]/opengraph-image.tsx b/app/search/[collection]/opengraph-image.tsx deleted file mode 100644 index 9eb9c47f7..000000000 --- a/app/search/[collection]/opengraph-image.tsx +++ /dev/null @@ -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 }); -}