Skip to content

Commit 9ac5974

Browse files
committed
logs #3890
1 parent fb1a420 commit 9ac5974

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

web/app/[locale]/(pages)/[...slug]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default async function Page({ params, searchParams }: Props) {
8787
params: {
8888
lang: getNameFromIso(locale) ?? 'en_GB',
8989
},
90+
tags: [`sanity:siteMenu:${locale}`],
9091
}),
9192
getPage({
9293
slug: decodeSlugs(slug),

web/sanity/lib/fetch.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ const optimizedFetch: DefinedFetchType = async ({
2323
requestTag = 'optimized-fetch',
2424
}) => {
2525
console.log('Fetching with optimized fetch:', {
26-
query,
27-
params,
2826
tags,
2927
stega,
3028
perspective,

web/sanity/pages/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export async function getPage(params: Params) {
234234

235235
const { data }: { data: any } = await routeSanityFetch({
236236
query: pageQuery,
237-
// tags: [...tags],
237+
tags: [`sanity:page:${Array.isArray(slug) ? slug?.join('/') : slug}`],
238238
params: { ...pageQueryParams },
239239
requestTag: 'page-by-slug',
240240
})
@@ -252,7 +252,7 @@ export async function getPage(params: Params) {
252252
lang: getNameFromIso(locale),
253253
...(tag && tag !== 'all' && { tag }),
254254
} as QueryParams,
255-
// tags: ['magazine'],
255+
tags: [`sanity:magazineIndex:${locale}`],
256256
requestTag: 'magazine-room',
257257
})
258258
magazineArticles = articles

0 commit comments

Comments
 (0)