mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
Merge f9c44e6f664718d5c7dca3468bbac7cdcaf1ff5f into c75b0fc0012b2c31c40c6b1584b1a72c0dbeea7f
This commit is contained in:
commit
f6cafa1dbf
@ -27,6 +27,13 @@ export default function getSiteInfoOperation({
|
||||
const { sdkFetch } = commerce.getConfig(config)
|
||||
const { data: categories } = await sdkFetch('categories', 'list')
|
||||
|
||||
if (!categories) {
|
||||
return {
|
||||
categories: [],
|
||||
brands: [],
|
||||
}
|
||||
}
|
||||
|
||||
const formattedCategories = categories.map(normalizeCategory)
|
||||
|
||||
return {
|
||||
|
@ -23,8 +23,8 @@
|
||||
"@components/*": ["components/*"],
|
||||
"@commerce": ["../packages/commerce/src"],
|
||||
"@commerce/*": ["../packages/commerce/src/*"],
|
||||
"@framework": ["../packages/local/src"],
|
||||
"@framework/*": ["../packages/local/src/*"]
|
||||
"@framework": ["../packages/commercejs/src"],
|
||||
"@framework/*": ["../packages/commercejs/src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user