diff --git a/app/[locale]/products/[slug]/page.tsx b/app/[locale]/products/[...slug]/page.tsx similarity index 100% rename from app/[locale]/products/[slug]/page.tsx rename to app/[locale]/products/[...slug]/page.tsx diff --git a/app/[locale]/products/[slug]/opengraph-image.tsx b/app/[locale]/products/[slug]/opengraph-image.tsx deleted file mode 100644 index 230441db..00000000 --- a/app/[locale]/products/[slug]/opengraph-image.tsx +++ /dev/null @@ -1,135 +0,0 @@ -import { ImageResponse } from 'next/og'; -import { getProductBySlug } from '@/lib/mdx'; - -export const runtime = 'nodejs'; - -export default async function Image({ params: { locale, slug } }: { params: { locale: string, slug: string } }) { - const productSlug = slug; - const product = await getProductBySlug(productSlug, locale); - - if (!product) { - return new ImageResponse( -
- ); - } - - return new ImageResponse( - ( -