This commit is contained in:
Henrik Larsson
2023-08-08 17:06:04 +02:00
parent 22aab2f657
commit 047e5fe566
16 changed files with 214 additions and 169 deletions

View File

@@ -255,8 +255,16 @@ export const categoryQuery = `*[_type == "category" && slug.current == $slug &&
}
}`;
// Categories query
export const categoriesQuery = `*[_type == "category" && language == $locale] | order(title asc) {
_type,
title,
"slug": slug.current,
"locale": language,
}`;
// Footer menu query
export const footerMenuQuery = `*[_type == "footerMenu" && language == $locale] | order(title asc) {
export const footerMenusQuery = `*[_type == "footerMenu" && language == $locale] | order(title asc) {
_type,
title,
"locale": language,

View File

@@ -9,7 +9,7 @@ export const client = createClient({
projectId,
dataset,
apiVersion,
useCdn: false,
useCdn: true,
});
export const clientFetch = cache(client.fetch.bind(client));