From 6c7f36142e264173e9b896b733a0ce91fb0e4357 Mon Sep 17 00:00:00 2001 From: Wassim Bougarfa <12980387+wassimoo@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:00:39 +0100 Subject: [PATCH 1/2] fix: add redirect rules for old Hydra, Keto, and Kratos links --- vercel.json | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 0c1bee0c1..bd6553330 100644 --- a/vercel.json +++ b/vercel.json @@ -47,6 +47,21 @@ "destination": "https://github.com/ory/keto/blob/v0.7.0-alpha.1/docs/versioned_docs/version-v0.5/configure-deploy.md", "permanent": false }, + { + "source": "/:project(keto|kratos)/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:path*", + "destination": "https://www.ory.com/docs/:project", + "permanent": false + }, + { + "source": "/hydra/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:segment/:path*", + "destination": "/docs/oauth2-oidc", + "permanent": false + }, + { + "source": "/docs/hydra/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:segment/:path*", + "destination": "/docs/oauth2-oidc", + "permanent": false + }, { "source": "/oathkeeper/docs/:path*", "destination": "https://www.ory.com/docs/oathkeeper/:path", @@ -67,6 +82,16 @@ "destination": "https://www.ory.com/docs/oathkeeper", "permanent": false }, + { + "source": "/hydra/docs/:version(v[0-9.]+|next)/:path*", + "destination": "https://www.ory.com/docs/hydra/:path", + "permanent": false + }, + { + "source": "/hydra/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)", + "destination": "https://www.ory.com/docs/hydra", + "permanent": false + }, { "source": "/hydra/docs/:path*", "destination": "https://www.ory.com/docs/hydra/:path", @@ -87,6 +112,16 @@ "destination": "https://www.ory.com/docs/hydra", "permanent": false }, + { + "source": "/keto/docs/:version(v[0-9.]+|next)/:path*", + "destination": "https://www.ory.com/docs/keto/:path", + "permanent": false + }, + { + "source": "/keto/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)", + "destination": "https://www.ory.com/docs/keto", + "permanent": false + }, { "source": "/keto/docs/:path*", "destination": "https://www.ory.com/docs/keto/:path", @@ -107,6 +142,16 @@ "destination": "https://www.ory.com/docs/keto", "permanent": false }, + { + "source": "/kratos/docs/:version(v[0-9.]+|next)/:path*", + "destination": "https://www.ory.com/docs/kratos/:path", + "permanent": false + }, + { + "source": "/kratos/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)", + "destination": "https://www.ory.com/docs/kratos", + "permanent": false + }, { "source": "/kratos/docs/:path*", "destination": "https://www.ory.com/docs/kratos/:path", @@ -1233,4 +1278,4 @@ "permanent": false } ] -} +} \ No newline at end of file From 955367fb8b06827936b0e10dedf2a3a8e18d8267 Mon Sep 17 00:00:00 2001 From: Wassim Bougarfa <12980387+wassimoo@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:03:27 +0100 Subject: [PATCH 2/2] fix: add missing newline --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index bd6553330..5acd1740f 100644 --- a/vercel.json +++ b/vercel.json @@ -1278,4 +1278,4 @@ "permanent": false } ] -} \ No newline at end of file +}