mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Include slug and path in products
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user