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