瀏覽代碼

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

Rohan Godha 3 月之前
父節點
當前提交
af89e7f117
共有 1 個文件被更改,包括 1 次插入1 次删除
  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() {