Merge branch 'main' into custom-fields

This commit is contained in:
Catalin Pinte
2022-11-28 13:12:42 +02:00
4 changed files with 17 additions and 8 deletions

View File

@@ -49,7 +49,9 @@ export async function getStaticProps({
const { products: relatedProducts } = await allProductsPromise
if (!product) {
throw new Error(`Product with slug '${params!.slug}' not found`)
return {
notFound: true,
}
}
return {