Initial commit

This commit is contained in:
olivermrbl
2023-05-01 14:46:17 +02:00
parent 86dca04eec
commit 0f4f5a79df
7 changed files with 68 additions and 304 deletions

View File

@@ -1,7 +1,6 @@
import type { Metadata } from 'next';
import Prose from 'components/prose';
import { getPage } from 'lib/shopify';
import { notFound } from 'next/navigation';
export const runtime = 'edge';
@@ -13,7 +12,8 @@ export async function generateMetadata({
}: {
params: { page: string };
}): Promise<Metadata> {
const page = await getPage(params.page);
console.log(params);
const page: any = null;
if (!page) return notFound();
@@ -36,7 +36,8 @@ export async function generateMetadata({
}
export default async function Page({ params }: { params: { page: string } }) {
const page = await getPage(params.page);
console.log(params);
const page: any = null;
if (!page) return notFound();