Implement getAllProductPaths to prerender some products during build time

This commit is contained in:
tniezg
2021-08-19 14:02:13 +02:00
parent ed49ac8833
commit a191e28df7
5 changed files with 123 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
import type { ProductSlugAttr } from '@framework/types'
const getProductPath = (partialSpreeProduct: ProductSlugAttr): string => {
return `/${partialSpreeProduct.attributes.slug}`
}
export default getProductPath