summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-11-04 21:36:46 +0000
committerDavid Hill <[email protected]>2025-11-04 21:36:46 +0000
commit7088bfabd773e2f076aab1c9d2468c04feff0570 (patch)
tree67edc3c55bbf4110c8f6c2c12be2f9a0a4ba463a /packages/desktop/src
parentdbdbfb85431eb12b3159992b301fdba54b026ab8 (diff)
parentfe94bb8e50ed9625e553cc7bd79d3a02889c2979 (diff)
downloadopencode-7088bfabd773e2f076aab1c9d2468c04feff0570.tar.gz
opencode-7088bfabd773e2f076aab1c9d2468c04feff0570.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'packages/desktop/src')
-rw-r--r--packages/desktop/src/index.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 0d631a5a0..9fe5da2f6 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -12,7 +12,9 @@ import Home from "@/pages"
const host = import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "127.0.0.1"
const port = import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"
-const url = new URLSearchParams(document.location.search).get("url") || `http://${host}:${port}`
+const url =
+ new URLSearchParams(document.location.search).get("url") ||
+ (location.hostname.includes("opencode.ai") ? `http://${host}:${port}` : "/")
const root = document.getElementById("root")
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {