mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
12 lines
344 B
TypeScript
12 lines
344 B
TypeScript
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 });
|
|
}
|