mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Fetch products separately
This commit is contained in:
@@ -9,6 +9,9 @@ import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages'
|
||||
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
||||
const { pages } = await getAllPages()
|
||||
const { products } = await getAllProducts()
|
||||
// const { products: featuredProducts } = await getAllProducts({
|
||||
// variables: { field: 'featuredProducts' },
|
||||
// })
|
||||
const { categories, brands } = await getSiteInfo()
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user