diff --git a/src/app/products/[slug]/page.tsx b/src/app/products/[slug]/page.tsx index e0a6e58..be5f9ea 100644 --- a/src/app/products/[slug]/page.tsx +++ b/src/app/products/[slug]/page.tsx @@ -2,16 +2,10 @@ import { getProducts } from "@/lib/woocommerce"; import Header from "@/components/layout/Header"; import Footer from "@/components/layout/Footer"; -export async function generateStaticParams() { - try { - const products = await getProducts(); - return products.map((product) => ({ - slug: product.slug || product.id.toString(), - })); - } catch { - return []; - } -} +export const dynamic = 'force-dynamic'; + +// Disable static generation - this page will be server-rendered +export const generateStaticParams = undefined; export default async function ProductPage({ params }: { params: Promise<{ slug: string }> }) { const { slug } = await params;