fix(console): complete Go login readiness

This commit is contained in:
vprdev 2026-08-03 12:19:31 -04:00
commit 92e5af4fa0
59 changed files with 3410 additions and 676 deletions

View file

@ -78,8 +78,6 @@ function localeFromAcceptLanguage(header: string | null) {
}
export const onRequest = defineMiddleware((ctx, next) => {
if (/^\/docs\/[^/]+\/go\/?$/.test(ctx.url.pathname)) return redirect(ctx.url, "/docs/go")
const alias = docsAlias(ctx.url.pathname)
if (alias) {
return redirect(ctx.url, alias.path, alias.locale)