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:
@@ -5,10 +5,7 @@ import Navbar from 'components/layout/navbar';
|
||||
import { getCart, getProduct } from 'lib/shopify';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import { cookies } from 'next/headers';
|
||||
import { ReactNode, Suspense } from 'react';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
const { SITE_NAME } = process.env;
|
||||
|
||||
@@ -43,9 +40,7 @@ export default async function BlogLayout({
|
||||
<div>
|
||||
<Navbar cart={cart} locale={locale} compact promotedItem={promotedItem} />
|
||||
{children}
|
||||
<Suspense>
|
||||
<Footer cart={cart} />
|
||||
</Suspense>
|
||||
<Footer cart={cart} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user