From bb9a1b36bf361e3222702ba37a174c9e40637561 Mon Sep 17 00:00:00 2001 From: Michael Louis Date: Fri, 27 Mar 2026 18:54:24 -0400 Subject: [PATCH] fixed redirects --- docs.json | 4 ++-- vercel.json | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs.json b/docs.json index 05e9a2b..4d2b75c 100644 --- a/docs.json +++ b/docs.json @@ -270,11 +270,11 @@ "redirects": [ { "source": "/cerebrium/:slug*", - "destination": "/docs/:slug*" + "destination": "/:slug*" }, { "source": "/docs/cerebrium/:slug*", - "destination": "/docs/:slug*" + "destination": "/:slug*" } ], "integrations": { diff --git a/vercel.json b/vercel.json index 2734dfd..f31c9d3 100644 --- a/vercel.json +++ b/vercel.json @@ -6,13 +6,23 @@ "permanent": true }, { - "source": "/cerebrium/:path*", - "destination": "/docs/:path*", + "source": "/cerebrium", + "destination": "/docs", + "permanent": true + }, + { + "source": "/cerebrium/:path(.*)", + "destination": "/docs/:path", + "permanent": true + }, + { + "source": "/docs/cerebrium", + "destination": "/docs", "permanent": true }, { - "source": "/docs/cerebrium/:path*", - "destination": "/docs/:path*", + "source": "/docs/cerebrium/:path(.*)", + "destination": "/docs/:path", "permanent": true } ],