mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
Get products formating
- Checking related products with param - Changing the normalizer - Separate calls for product & products in normalizer
This commit is contained in:
@@ -24,9 +24,10 @@ export async function getStaticProps({
|
||||
})
|
||||
|
||||
const allProductsPromise = commerce.getAllProducts({
|
||||
variables: { first: 4 },
|
||||
variables: { first: 2 },
|
||||
config,
|
||||
preview,
|
||||
related: true
|
||||
})
|
||||
const { pages } = await pagesPromise
|
||||
const { categories } = await siteInfoPromise
|
||||
|
Reference in New Issue
Block a user