mirror of
https://github.com/vercel/commerce.git
synced 2025-07-25 11:11:24 +00:00
Change url to products/
This commit is contained in:
@@ -56,11 +56,11 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
|
||||
? locales.reduce<string[]>((arr, locale) => {
|
||||
// Add a product path for every locale
|
||||
products.forEach((product: any) => {
|
||||
arr.push(`/${locale}/product${product.path}`)
|
||||
arr.push(`/${locale}/products${product.path}`)
|
||||
})
|
||||
return arr
|
||||
}, [])
|
||||
: products.map((product: any) => `/product${product.path}`),
|
||||
: products.map((product: any) => `/products${product.path}`),
|
||||
fallback: 'blocking',
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user