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

pull/6215/head
Rohan Godha 2025-12-26 11:36:31 -06:00 committed by GitHub
parent 25c68c8061
commit 1bcf8d8806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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() {