fix: add cloud web access route alias

This commit is contained in:
Codex Agent
2026-06-05 09:54:11 +08:00
parent 40f798eb0b
commit 9840dcc269
3 changed files with 35 additions and 2 deletions
@@ -52,7 +52,7 @@ export function createCloudWebServer({
}
const routePath = url.pathname.replace(/\/+$/u, "") || "/";
const relativePath = routePath === "/" || routePath === "/gate" || routePath === "/diagnostics/gate" || routePath === "/help" || routePath === "/skills"
const relativePath = routePath === "/" || routePath === "/gate" || routePath === "/diagnostics/gate" || routePath === "/help" || routePath === "/skills" || routePath === "/access"
? "index.html"
: url.pathname.slice(1);
for (const root of roots) {