Skip to content

Commit 6c7f361

Browse files
committed
fix: add redirect rules for old Hydra, Keto, and Kratos links
1 parent 16c8dca commit 6c7f361

1 file changed

Lines changed: 46 additions & 1 deletion

File tree

vercel.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@
4747
"destination": "https://github.com/ory/keto/blob/v0.7.0-alpha.1/docs/versioned_docs/version-v0.5/configure-deploy.md",
4848
"permanent": false
4949
},
50+
{
51+
"source": "/:project(keto|kratos)/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:path*",
52+
"destination": "https://www.ory.com/docs/:project",
53+
"permanent": false
54+
},
55+
{
56+
"source": "/hydra/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:segment/:path*",
57+
"destination": "/docs/oauth2-oidc",
58+
"permanent": false
59+
},
60+
{
61+
"source": "/docs/hydra/:version(v[0-9.]+|v[0-9.]+/|next|next/)/:segment/:path*",
62+
"destination": "/docs/oauth2-oidc",
63+
"permanent": false
64+
},
5065
{
5166
"source": "/oathkeeper/docs/:path*",
5267
"destination": "https://www.ory.com/docs/oathkeeper/:path",
@@ -67,6 +82,16 @@
6782
"destination": "https://www.ory.com/docs/oathkeeper",
6883
"permanent": false
6984
},
85+
{
86+
"source": "/hydra/docs/:version(v[0-9.]+|next)/:path*",
87+
"destination": "https://www.ory.com/docs/hydra/:path",
88+
"permanent": false
89+
},
90+
{
91+
"source": "/hydra/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)",
92+
"destination": "https://www.ory.com/docs/hydra",
93+
"permanent": false
94+
},
7095
{
7196
"source": "/hydra/docs/:path*",
7297
"destination": "https://www.ory.com/docs/hydra/:path",
@@ -87,6 +112,16 @@
87112
"destination": "https://www.ory.com/docs/hydra",
88113
"permanent": false
89114
},
115+
{
116+
"source": "/keto/docs/:version(v[0-9.]+|next)/:path*",
117+
"destination": "https://www.ory.com/docs/keto/:path",
118+
"permanent": false
119+
},
120+
{
121+
"source": "/keto/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)",
122+
"destination": "https://www.ory.com/docs/keto",
123+
"permanent": false
124+
},
90125
{
91126
"source": "/keto/docs/:path*",
92127
"destination": "https://www.ory.com/docs/keto/:path",
@@ -107,6 +142,16 @@
107142
"destination": "https://www.ory.com/docs/keto",
108143
"permanent": false
109144
},
145+
{
146+
"source": "/kratos/docs/:version(v[0-9.]+|next)/:path*",
147+
"destination": "https://www.ory.com/docs/kratos/:path",
148+
"permanent": false
149+
},
150+
{
151+
"source": "/kratos/docs/:version(v[0-9.]+|v[0-9.]+/|next|next/)",
152+
"destination": "https://www.ory.com/docs/kratos",
153+
"permanent": false
154+
},
110155
{
111156
"source": "/kratos/docs/:path*",
112157
"destination": "https://www.ory.com/docs/kratos/:path",
@@ -1233,4 +1278,4 @@
12331278
"permanent": false
12341279
}
12351280
]
1236-
}
1281+
}

0 commit comments

Comments
 (0)