mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
add revalidation timeframes
This commit is contained in:
@@ -2,6 +2,7 @@ import OpengraphImage from 'components/opengraph-image';
|
||||
import { getPage } from 'lib/shopify';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
export default async function Image({ params }: { params: { page: string } }) {
|
||||
const page = await getPage({ handle: params.page });
|
||||
|
@@ -12,8 +12,7 @@ import { Suspense } from 'react';
|
||||
import ShopsNav from './shops-nav';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
export const revalidate = 43200; // 12 hours in seconds
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
export async function generateMetadata({
|
||||
params
|
||||
|
Reference in New Issue
Block a user