Merge branch 'local-provider' into custom-checkout

This commit is contained in:
Tobias Koppers
2021-06-14 21:19:18 +02:00
59 changed files with 11939 additions and 67 deletions

View File

@@ -55,12 +55,12 @@ export async function getStaticPaths({ locales }: GetStaticPathsContext) {
paths: locales
? locales.reduce<string[]>((arr, locale) => {
// Add a product path for every locale
products.forEach((product) => {
products.forEach((product: any) => {
arr.push(`/${locale}/product${product.path}`)
})
return arr
}, [])
: products.map((product) => `/product${product.path}`),
: products.map((product: any) => `/product${product.path}`),
fallback: 'blocking',
}
}