Skip to content

Commit

Permalink
fix: add revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableVic committed May 11, 2023
1 parent 99abe4d commit 2f4a6d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/product/[handle]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/search/[collection]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f4a6d2

Please sign in to comment.