diff --git a/app/[page]/page.tsx b/app/[page]/page.tsx index 7b64fa19e..02aaf1366 100644 --- a/app/[page]/page.tsx +++ b/app/[page]/page.tsx @@ -4,8 +4,6 @@ import Prose from 'components/prose'; import { getPage } from 'lib/shopify'; import { notFound } from 'next/navigation'; -export const revalidate = 43200; // 12 hours in seconds - export async function generateMetadata({ params }: { diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index e8b6637c8..ca5ddbdb6 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -357,6 +357,7 @@ export async function getMenu(handle: string): Promise { export async function getPage(handle: string): Promise { const res = await shopifyFetch({ query: getPageQuery, + cache: 'no-store', variables: { handle } }); @@ -365,7 +366,8 @@ export async function getPage(handle: string): Promise { export async function getPages(): Promise { const res = await shopifyFetch({ - query: getPagesQuery + query: getPagesQuery, + cache: 'no-store' }); return removeEdgesAndNodes(res.body.data.pages);