From e58eb5ef90a1d0395ae3e12f533a2402dc3e1797 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 27 Jun 2025 15:26:46 +0300 Subject: [PATCH] docs: remove empty storefront guides (#12844) --- .../app/storefront-development/cart/page.mdx | 18 ------------- .../storefront-development/customers/page.mdx | 16 ------------ .../products/categories/page.mdx | 18 ------------- .../products/collections/page.mdx | 18 ------------- .../storefront-development/products/page.mdx | 21 ---------------- www/apps/resources/next.config.mjs | 25 +++++++++++++++++++ 6 files changed, 25 insertions(+), 91 deletions(-) delete mode 100644 www/apps/resources/app/storefront-development/cart/page.mdx delete mode 100644 www/apps/resources/app/storefront-development/customers/page.mdx delete mode 100644 www/apps/resources/app/storefront-development/products/categories/page.mdx delete mode 100644 www/apps/resources/app/storefront-development/products/collections/page.mdx delete mode 100644 www/apps/resources/app/storefront-development/products/page.mdx diff --git a/www/apps/resources/app/storefront-development/cart/page.mdx b/www/apps/resources/app/storefront-development/cart/page.mdx deleted file mode 100644 index 8ab73d04a4..0000000000 --- a/www/apps/resources/app/storefront-development/cart/page.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -products: - - cart ---- - -import { ChildDocs } from "docs-ui" - -export const metadata = { - title: `Carts in Storefront`, -} - -# {metadata.title} - -A cart holds the items that the customer wants to purchase. - -Using Medusa's Store APIs, you can create a cart for the customer and allow them to add, update, and remove items from the cart. - - \ No newline at end of file diff --git a/www/apps/resources/app/storefront-development/customers/page.mdx b/www/apps/resources/app/storefront-development/customers/page.mdx deleted file mode 100644 index ec126cee66..0000000000 --- a/www/apps/resources/app/storefront-development/customers/page.mdx +++ /dev/null @@ -1,16 +0,0 @@ ---- -products: - - customer ---- - -import { ChildDocs } from "docs-ui" - -export const metadata = { - title: `Customers in Storefront`, -} - -# {metadata.title} - -A customer can register, manage their account, keep track of their orders, and more. - - \ No newline at end of file diff --git a/www/apps/resources/app/storefront-development/products/categories/page.mdx b/www/apps/resources/app/storefront-development/products/categories/page.mdx deleted file mode 100644 index 0b5bb660b2..0000000000 --- a/www/apps/resources/app/storefront-development/products/categories/page.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -products: - - product ---- - -import { ChildDocs } from "docs-ui" - -export const metadata = { - title: `Product Categories in Storefront`, -} - -# {metadata.title} - -Products can be categorized into categories, such as Shirts or Shoes. - -Customers can browse those categories to narrow down and find the products they're looking for. - - \ No newline at end of file diff --git a/www/apps/resources/app/storefront-development/products/collections/page.mdx b/www/apps/resources/app/storefront-development/products/collections/page.mdx deleted file mode 100644 index 571648fd8b..0000000000 --- a/www/apps/resources/app/storefront-development/products/collections/page.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -products: - - product ---- - -import { ChildDocs } from "docs-ui" - -export const metadata = { - title: `Product Collections in Storefront`, -} - -# {metadata.title} - -Products can be organized into collections, such as Summer Collection. - -Customers can browse those collections and the products in them. - - \ No newline at end of file diff --git a/www/apps/resources/app/storefront-development/products/page.mdx b/www/apps/resources/app/storefront-development/products/page.mdx deleted file mode 100644 index 154f0d61b2..0000000000 --- a/www/apps/resources/app/storefront-development/products/page.mdx +++ /dev/null @@ -1,21 +0,0 @@ ---- -products: - - product ---- - -import { ChildDocs } from "docs-ui" - -export const metadata = { - title: `Products in Storefront`, -} - -# {metadata.title} - -Customers browse products in the storefront before purchasing. - -Some features essential to implement in your storefront are: - -- Show customers products and allow them to filter these products. -- Show products organized by category or collection. - - \ No newline at end of file diff --git a/www/apps/resources/next.config.mjs b/www/apps/resources/next.config.mjs index a0c87badbb..1e30c666e2 100644 --- a/www/apps/resources/next.config.mjs +++ b/www/apps/resources/next.config.mjs @@ -245,6 +245,31 @@ const nextConfig = { destination: "/references/user/events", permanent: true, }, + { + source: "/storefront-development/cart", + destination: "/storefront-development/cart/create", + permanent: true, + }, + { + source: "/storefront-development/customer", + destination: "/storefront-development/customer/register", + permanent: true, + }, + { + source: "/storefront-development/products/categories", + destination: "/storefront-development/products/categories/list", + permanent: true, + }, + { + source: "/storefront-development/products/collections", + destination: "/storefront-development/products/collections/list", + permanent: true, + }, + { + source: "/storefront-development/products", + destination: "/storefront-development/products/list", + permanent: true, + }, ]) }, outputFileTracingExcludes: {