mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Updates
This commit is contained in:
@@ -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,
|
||||
|
@@ -9,7 +9,7 @@ export const client = createClient({
|
||||
projectId,
|
||||
dataset,
|
||||
apiVersion,
|
||||
useCdn: false,
|
||||
useCdn: true,
|
||||
});
|
||||
|
||||
export const clientFetch = cache(client.fetch.bind(client));
|
Reference in New Issue
Block a user