mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
Implement getAllProductPaths to prerender some products during build time
This commit is contained in:
7
framework/spree/utils/get-product-path.ts
Normal file
7
framework/spree/utils/get-product-path.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { ProductSlugAttr } from '@framework/types'
|
||||
|
||||
const getProductPath = (partialSpreeProduct: ProductSlugAttr): string => {
|
||||
return `/${partialSpreeProduct.attributes.slug}`
|
||||
}
|
||||
|
||||
export default getProductPath
|
Reference in New Issue
Block a user