Przeglądaj źródła

fix: `opencode web` baseURL error (#6181)

Rohan Godha 1 miesiąc temu
rodzic
commit
1bcf8d8806
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/app.tsx

+ 1 - 1
packages/app/src/app.tsx

@@ -38,7 +38,7 @@ const url = iife(() => {
   if (import.meta.env.DEV)
     return `http://${import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "localhost"}:${import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"}`
 
-  return "http://localhost:4096"
+  return window.location.origin
 })
 
 export function App() {