fix: opencode web command

This commit is contained in:
Adam
2025-12-08 09:18:46 -06:00
parent e8ce113b7f
commit de415be4f6
2 changed files with 5 additions and 5 deletions

View File

@@ -2371,11 +2371,11 @@ export namespace Server {
})
},
)
.all("/*", async (c) => {
return proxy(`https://desktop.dev.opencode.ai${c.req.path}`, {
.all("/web/*", async (c) => {
return proxy(`https://desktop.opencode.ai${c.req.path.replace(/^\/web/, "")}?=url=/web`, {
...c.req,
headers: {
host: "desktop.dev.opencode.ai",
host: "desktop.opencode.ai",
},
})
}),