wip: Working on footer

This commit is contained in:
Sol Irvine
2023-08-18 18:32:01 +09:00
parent ce7f51a600
commit 95d237c4ac
18 changed files with 141 additions and 80 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 });
}