mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
path was failling
This commit is contained in:
@@ -37,9 +37,10 @@ export async function getStaticPaths() {
|
||||
const { products } = await getAllProductPaths()
|
||||
|
||||
return {
|
||||
paths: products.map((product) => ({
|
||||
params: { slug: product!.node.path },
|
||||
})),
|
||||
// paths: products.map((product) => ({
|
||||
// params: { slug: product!.node.path.trim() },
|
||||
// })),
|
||||
paths: [],
|
||||
fallback: 'unstable_blocking',
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user