mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Individual pages should be dynamic
This commit is contained in:
@@ -357,6 +357,7 @@ export async function getMenu(handle: string): Promise<Menu[]> {
|
||||
export async function getPage(handle: string): Promise<Page> {
|
||||
const res = await shopifyFetch<ShopifyPageOperation>({
|
||||
query: getPageQuery,
|
||||
cache: 'no-store',
|
||||
variables: { handle }
|
||||
});
|
||||
|
||||
@@ -365,7 +366,8 @@ export async function getPage(handle: string): Promise<Page> {
|
||||
|
||||
export async function getPages(): Promise<Page[]> {
|
||||
const res = await shopifyFetch<ShopifyPagesOperation>({
|
||||
query: getPagesQuery
|
||||
query: getPagesQuery,
|
||||
cache: 'no-store'
|
||||
});
|
||||
|
||||
return removeEdgesAndNodes(res.body.data.pages);
|
||||
|
Reference in New Issue
Block a user