mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-25 14:55:28 +00:00
fix: opencode web command
This commit is contained in:
parent
cebbfcfbaa
commit
d9175be989
1 changed files with 9 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue