fix: opencode web command

pull/3955/head
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
1 changed files with 9 additions and 1 deletions

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",