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) => {
|
.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,
|
...c.req,
|
||||||
headers: {
|
headers: {
|
||||||
host: "desktop.opencode.ai",
|
host: "desktop.opencode.ai",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue