diff --git a/next.config.ts b/next.config.ts index 8d6cd13..1e37233 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,10 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + output: 'export', + trailingSlash: true, images: { + unoptimized: true, remotePatterns: [ { protocol: 'https', diff --git a/src/app/products/[id]/page.tsx b/src/app/products/[id]/page.tsx index 500f878..1178a05 100644 --- a/src/app/products/[id]/page.tsx +++ b/src/app/products/[id]/page.tsx @@ -14,6 +14,12 @@ import Features from '@/components/Features'; import CTA from '@/components/CTA'; import { products } from '@/lib/products'; +export async function generateStaticParams() { + return products.map((product) => ({ + id: product.id, + })); +} + interface PageProps { params: Promise<{ id: string }>; }