feat(console): connect named go subscribers
This commit is contained in:
parent
d7ee68a41d
commit
86e4631993
28 changed files with 367 additions and 4194 deletions
|
|
@ -78,6 +78,8 @@ 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue