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 { getCollection } from 'lib/shopify';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
export default async function Image({ params }: { params: { collection: string } }) {
|
||||
const collection = await getCollection({ handle: params.collection });
|
||||
|
@@ -7,6 +7,7 @@ import ProductGridItems from 'components/layout/product-grid-items';
|
||||
import { defaultSort, sorting } from 'lib/constants';
|
||||
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = 300; // 5 minutes in seconds
|
||||
|
||||
export async function generateMetadata({
|
||||
params
|
||||
|
Reference in New Issue
Block a user