docs: redirect zen docs to console models

This commit is contained in:
Frank
2026-10-12 22:46:29 -04:00
Unverified
parent 15b24ae12d
commit d7cfdaa3c7
+1 -1
View File
@@ -80,7 +80,7 @@ function localeFromAcceptLanguage(header: string | null) {
export const onRequest = defineMiddleware((ctx, next) => {
const moved = /^\/docs\/(?:[^/]+\/)?(zen|go)\/?$/.exec(ctx.url.pathname)
if (moved) {
return redirect(ctx.url, moved[1] === "go" ? "/v2/docs/console/go/" : "/v2/docs/console/")
return redirect(ctx.url, moved[1] === "go" ? "/v2/docs/console/go/" : "/v2/docs/console/models/")
}
const alias = docsAlias(ctx.url.pathname)