mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 04:01:21 +00:00
Include slug and path in products
This commit is contained in:
parent
14e7a4fe08
commit
24e635b048
@ -124,6 +124,9 @@ export default function getAllProductsOperation({
|
||||
variants = []
|
||||
}
|
||||
|
||||
const slug = spreeProduct.attributes.slug
|
||||
const path = `/${spreeProduct.attributes.slug}`
|
||||
|
||||
return {
|
||||
id: spreeProduct.id,
|
||||
name: spreeProduct.attributes.name,
|
||||
@ -132,6 +135,8 @@ export default function getAllProductsOperation({
|
||||
variants,
|
||||
options,
|
||||
price,
|
||||
slug,
|
||||
path,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user