This commit is contained in:
Sol Irvine
2023-08-21 10:04:39 +09:00
parent 95eefa798b
commit 9a390aadcc
16 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
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({ handle: params.page });
const title = page.seo?.title || page.title;
return await OpengraphImage({ title });
}