diff --git a/examples/ssr/src/pages/api/products/[id].ts b/examples/ssr/src/pages/api/products/[id].ts index abcd02da8b..f0f6fa89f3 100644 --- a/examples/ssr/src/pages/api/products/[id].ts +++ b/examples/ssr/src/pages/api/products/[id].ts @@ -6,7 +6,7 @@ export function GET({ params }: APIContext) { if (productMap.has(id)) { const product = productMap.get(id); - return new Response(JSON.stringify(products)); + return new Response(JSON.stringify(product)); } else { return new Response(null, { status: 400,