move to canary next for ppr support

This commit is contained in:
Sol Irvine
2023-11-12 16:01:44 +09:00
parent 2a52c4920c
commit 848e841419
14 changed files with 66 additions and 71 deletions

View File

@@ -8,6 +8,7 @@ import { getCart, getPage, getProduct } from 'lib/shopify';
import { Product } from 'lib/shopify/types';
import { cookies } from 'next/headers';
import { notFound } from 'next/navigation';
import { Suspense } from 'react';
import ShopsNav from './shops-nav';
export async function generateMetadata({
@@ -51,9 +52,11 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
<div>
<Navbar cart={cart} locale={params?.locale} compact showTop promotedItem={promotedItem} />
<div className="mx-auto max-w-xl px-6 pb-24 pt-12 md:pb-48 md:pt-24">
<div className="pb-12">
<ShopsNav />
</div>
<Suspense>
<div className="pb-12">
<ShopsNav />
</div>
</Suspense>
{/* <h2 className="font-multilingual mb-8 text-3xl font-medium">{page.title}</h2> */}
<Prose html={page.body as string} />
</div>