mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51: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)
|
||||
|
||||
const categories = await getCategories(config)
|
||||
const brands = await getVendors(config)
|
||||
const categoriesPromise = getCategories(config)
|
||||
const brandsPromise = getVendors(config)
|
||||
const categories = await categoriesPromise
|
||||
const brands = await brandsPromise
|
||||
|
||||
return {
|
||||
categories,
|
||||
|
Loading…
x
Reference in New Issue
Block a user