mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
rm open graph edge functions
This commit is contained in:
parent
fc1a3b768f
commit
ace71f52d4
@ -1,11 +0,0 @@
|
|||||||
import OpengraphImage from 'components/opengraph-image';
|
|
||||||
import { getPage } from 'lib/shopify';
|
|
||||||
|
|
||||||
export const runtime = 'edge';
|
|
||||||
|
|
||||||
export default async function Image({ params }: { params: { page: string } }) {
|
|
||||||
const page = await getPage(params.page);
|
|
||||||
const title = page.seo?.title || page.title;
|
|
||||||
|
|
||||||
return await OpengraphImage({ title });
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
import OpengraphImage from 'components/opengraph-image';
|
|
||||||
|
|
||||||
export const runtime = 'edge';
|
|
||||||
|
|
||||||
export default async function Image() {
|
|
||||||
return await OpengraphImage();
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user