docs: remove v1 docs from navbar (#9722)

* docs: remove v1 docs from navbar

* remove fallback
This commit is contained in:
Shahed Nasser
2024-10-23 10:10:27 +03:00
committed by GitHub
parent 2fbebb60e3
commit 8891c0a3d0
2 changed files with 6 additions and 13 deletions

View File

@@ -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,
},
],
}
},

View File

@@ -38,12 +38,12 @@ export const MainNavDesktopMenu = () => {
title: "Homepage",
link: "https://medusajs.com",
},
{
type: "link",
icon: <BookIcon />,
title: "Medusa v1",
link: "https://docs.medusajs.com",
},
// {
// type: "link",
// icon: <BookIcon />,
// title: "Medusa v1",
// link: "https://docs.medusajs.com",
// },
{
type: "link",
icon: <TimelineVertical />,