From 483edf0a1b9cac4298b2879261a08652302634c8 Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Sun, 20 Aug 2023 20:25:59 +0100 Subject: [PATCH] Move /product to /products for IG compat --- app/{product => products}/[handle]/page.tsx | 2 +- app/{product => products}/[handle]/sku/page.tsx | 0 app/sitemap.ts | 2 +- components/carousel.tsx | 2 +- components/cart/modal.tsx | 2 +- components/grid/three-items.tsx | 2 +- components/layout/product-grid-items.tsx | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename app/{product => products}/[handle]/page.tsx (98%) rename app/{product => products}/[handle]/sku/page.tsx (100%) diff --git a/app/product/[handle]/page.tsx b/app/products/[handle]/page.tsx similarity index 98% rename from app/product/[handle]/page.tsx rename to app/products/[handle]/page.tsx index a5351a8fb..3ae1bbf2c 100644 --- a/app/product/[handle]/page.tsx +++ b/app/products/[handle]/page.tsx @@ -123,7 +123,7 @@ async function RelatedProducts({ id }: { id: string }) { products.map((product) => ({ - url: `${baseUrl}/product/${product.handle}`, + url: `${baseUrl}/products/${product.handle}`, lastModified: product.updatedAt })) ); diff --git a/components/carousel.tsx b/components/carousel.tsx index d67ba5deb..24a24cfc1 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -14,7 +14,7 @@ export async function Carousel() { {[...products, ...products].map((product, i) => ( - + {products.map((product) => ( - +