mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 21:15:57 +03:00
docs: redirect zen docs to console models
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user