mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 06:12:26 +00:00
fix: opencode web command
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user