feat(poc): react nextjs initial

This commit is contained in:
Björn Meyer
2023-07-06 10:42:30 +02:00
parent 8c8240956a
commit c9cf57c933
27 changed files with 9010 additions and 658 deletions

View File

@@ -0,0 +1,11 @@
import OpengraphImage from 'components/opengraph-image';
import { getCollection } from 'lib/shopware';
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 });
}