From 144469ea67ba759dbad5764ec0b0761cc596a3b5 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 28 Oct 2024 06:31:44 +0200 Subject: [PATCH 1/2] docs: add common redirects to v1 docs --- www/apps/book/next.config.mjs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/www/apps/book/next.config.mjs b/www/apps/book/next.config.mjs index eebdff33062f6..96b325b940ee9 100644 --- a/www/apps/book/next.config.mjs +++ b/www/apps/book/next.config.mjs @@ -157,6 +157,21 @@ const nextConfig = { destination: "/:path*", permanent: true, }, + { + source: "/recipes/:path*", + destination: "/v1/recipes/:path*", + permanent: true + }, + { + source: "/plugins/:path*", + destination: "/v1/plugins/:path*", + permanent: true + }, + { + source: "/medusa-react/:path*", + destination: "/v1/medusa-react/:path*", + permanent: true + } ] }, } From 7598e79e84bfc8f3a238b3d2951e620816a6b735 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 28 Oct 2024 15:06:48 +0100 Subject: [PATCH 2/2] change recipes redirect --- www/apps/book/next.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/apps/book/next.config.mjs b/www/apps/book/next.config.mjs index 96b325b940ee9..f460bf4d23591 100644 --- a/www/apps/book/next.config.mjs +++ b/www/apps/book/next.config.mjs @@ -159,7 +159,7 @@ const nextConfig = { }, { source: "/recipes/:path*", - destination: "/v1/recipes/:path*", + destination: "/resources/recipes", permanent: true }, {