diff --git a/vercel.json b/vercel.json index 0c1bee0c1..5acd1740f 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",