From 2f4a6d21778e8f582fd60a5804910b85daf68b70 Mon Sep 17 00:00:00 2001 From: Victor Gerbrands Date: Thu, 11 May 2023 15:11:59 +0200 Subject: [PATCH] fix: add revalidate --- app/product/[handle]/page.tsx | 1 + app/search/[collection]/page.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index ce924f09e..9cbf8ea58 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -14,6 +14,7 @@ import { getProduct } from 'lib/medusa'; import { Image } from 'lib/medusa/types'; export const runtime = 'edge'; +export const revalidate = 30; export async function generateMetadata({ params diff --git a/app/search/[collection]/page.tsx b/app/search/[collection]/page.tsx index 3f950b9d0..2012423c9 100644 --- a/app/search/[collection]/page.tsx +++ b/app/search/[collection]/page.tsx @@ -6,6 +6,7 @@ import Grid from 'components/grid'; import ProductGridItems from 'components/layout/product-grid-items'; export const runtime = 'edge'; +export const revalidate = 30; export async function generateMetadata({ params