Change url to products/

This commit is contained in:
Daniel Gent
2021-08-23 19:07:19 +02:00
parent 0e7e7b7d5f
commit b5455ae2fd
3 changed files with 5 additions and 5 deletions

View File

@@ -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',
}
}