add revalidation timeframes

This commit is contained in:
Sol Irvine
2023-10-08 21:20:35 +09:00
parent 787d7e7912
commit 1d83ea4042
16 changed files with 23 additions and 6 deletions

View File

@@ -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 });

View File

@@ -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