There was an error while loading. Please reload this page.
1 parent c683fba commit 1fa5d19Copy full SHA for 1fa5d19
1 file changed
web/sanity/helpers/getIntl.ts
@@ -1,12 +1,13 @@
1
//import translations from '../interface/translations.json'
2
import { defaultLanguage } from '@/languageConfig'
3
-import { sanityFetch } from '@/sanity/lib/live'
+import { routeSanityFetch } from '@/sanity/lib/fetch'
4
import formatTextSnippets from './formatTextSnippets'
5
import { getNameFromIso } from './localization'
6
7
export default async (locale: string) => {
8
- const { data: textSnippetsArray } = await sanityFetch({
+ const { data: textSnippetsArray } = await routeSanityFetch({
9
query: `*[_type == "textSnippet"]`,
10
+ tags: ['textSnippet'],
11
})
12
const textSnippetsData = formatTextSnippets(textSnippetsArray ?? [])
13
const lang = getNameFromIso(locale)
0 commit comments