mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
merge-ppr-branch-into-narai-commerce
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { Suspense } from 'react';
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return <Suspense>{children}</Suspense>;
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
@@ -5,12 +5,8 @@ import Navbar from 'components/layout/navbar';
|
||||
import { getCart, getPage, getProduct } from 'lib/shopify';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import { cookies } from 'next/headers';
|
||||
import { Suspense } from 'react';
|
||||
import AboutNaraiDetail from './about-narai-detail';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 43200; // 12 hours in seconds
|
||||
|
||||
const { SITE_NAME } = process.env;
|
||||
|
||||
export const metadata = {
|
||||
@@ -43,9 +39,7 @@ export default async function Page({ params }: { params: { locale?: SupportedLoc
|
||||
<AboutNaraiDetail awards={awardsPage.body} />
|
||||
</div>
|
||||
|
||||
<Suspense>
|
||||
<Footer cart={cart} />
|
||||
</Suspense>
|
||||
<Footer cart={cart} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user