revert: opencode web command changes

This reverts commit c347056246.
This commit is contained in:
Adam
2025-12-08 09:45:54 -06:00
parent 0dd0250285
commit 4425c66732
2 changed files with 4 additions and 12 deletions

View File

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