fix: opencode web command

This commit is contained in:
Adam 2025-12-08 09:35:05 -06:00
parent cebbfcfbaa
commit d9175be989
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -2372,7 +2372,15 @@ export namespace Server {
},
)
.all("/web/*", async (c) => {
return proxy(`https://desktop.opencode.ai${c.req.path.replace(/^\/web/, "")}?=url=/web`, {
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?url=/web`, {
...c.req,
headers: {
host: "desktop.opencode.ai",