summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-05 12:09:22 -0600
committerAdam <[email protected]>2025-11-05 12:09:30 -0600
commit3660e2c481f21988fd54bb395ea4d75d118a7ae0 (patch)
treeb42aef58b1cb10ca6c05399730746ad526d7833c
parent06ca45189b5f675ca1d8ab60f3609c4a0f00fab3 (diff)
downloadopencode-3660e2c481f21988fd54bb395ea4d75d118a7ae0.tar.gz
opencode-3660e2c481f21988fd54bb395ea4d75d118a7ae0.zip
fix(desktop): local dev url
-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 de9994af6..9d402138d 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -16,7 +16,9 @@ const port = import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"
const url =
new URLSearchParams(document.location.search).get("url") ||
- (location.hostname.includes("opencode.ai") ? `http://${host}:${port}` : "/")
+ (location.hostname.includes("opencode.ai") || location.hostname.includes("localhost")
+ ? `http://${host}:${port}`
+ : "/")
const root = document.getElementById("root")
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {