From 8891c0a3d03ad0c068e877ec7d9581d1ef2c338e Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 23 Oct 2024 10:10:27 +0300 Subject: [PATCH] docs: remove v1 docs from navbar (#9722) * docs: remove v1 docs from navbar * remove fallback --- www/apps/book/next.config.mjs | 7 ------- .../src/components/MainNav/DesktopMenu/index.tsx | 12 ++++++------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/www/apps/book/next.config.mjs b/www/apps/book/next.config.mjs index 7225d90473..ec25b25b9f 100644 --- a/www/apps/book/next.config.mjs +++ b/www/apps/book/next.config.mjs @@ -117,13 +117,6 @@ const nextConfig = { // destination: `${process.env.NEXT_PUBLIC_USER_GUIDE_URL}/user-guide/:path*`, // basePath: false, // }, - { - source: "/:path((?!v2).*)", - destination: `${ - process.env.NEXT_PUBLIC_API_V1_URL || "https://localhost:3001" - }/:path*`, - basePath: false, - }, ], } }, diff --git a/www/packages/docs-ui/src/components/MainNav/DesktopMenu/index.tsx b/www/packages/docs-ui/src/components/MainNav/DesktopMenu/index.tsx index a69b2a4792..98f664ac14 100644 --- a/www/packages/docs-ui/src/components/MainNav/DesktopMenu/index.tsx +++ b/www/packages/docs-ui/src/components/MainNav/DesktopMenu/index.tsx @@ -38,12 +38,12 @@ export const MainNavDesktopMenu = () => { title: "Homepage", link: "https://medusajs.com", }, - { - type: "link", - icon: , - title: "Medusa v1", - link: "https://docs.medusajs.com", - }, + // { + // type: "link", + // icon: , + // title: "Medusa v1", + // link: "https://docs.medusajs.com", + // }, { type: "link", icon: ,