mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
parallelize requests
This commit is contained in:
parent
75b201b9f8
commit
294e898378
@ -19,8 +19,10 @@ const getSiteInfo = async (options?: {
|
|||||||
|
|
||||||
config = getConfig(config)
|
config = getConfig(config)
|
||||||
|
|
||||||
const categories = await getCategories(config)
|
const categoriesPromise = getCategories(config)
|
||||||
const brands = await getVendors(config)
|
const brandsPromise = getVendors(config)
|
||||||
|
const categories = await categoriesPromise
|
||||||
|
const brands = await brandsPromise
|
||||||
|
|
||||||
return {
|
return {
|
||||||
categories,
|
categories,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user