mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 21:47:51 +00:00
rm open graph edge functions (search)
This commit is contained in:
parent
ace71f52d4
commit
3b650b0ea5
@ -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 });
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user