mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Initial commit
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user