Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ middleware.ts
File
middleware.ts
packages/web/src/middleware.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ defineMiddleware } from
"astro:middleware"
2
import
{ exactLocale, matchLocale } from
"./i18n/locales"
3
4
function
docsAlias(pathname: string) {
Callers
nothing calls this directly
Calls
6
docsAlias
Function · 0.85
redirect
Function · 0.85
localeFromCookie
Function · 0.85
localeFromAcceptLanguage
Function · 0.85
get
Method · 0.65
next
Function · 0.50
Tested by
no test coverage detected