Catch all routes

This commit is contained in:
Henrik Larsson
2023-08-07 16:40:42 +02:00
parent a75a2e7feb
commit 6527974989
8 changed files with 93 additions and 53 deletions

View File

@@ -55,6 +55,8 @@ export async function generateMetadata({
export default async function ProductPage({ params }: ProductPageParams) {
const product = await clientFetch(productQuery, params);
console.log(params);
if (!product) return notFound();
const productJsonLd = {