mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +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 });
|
||||
|
Reference in New Issue
Block a user