fix: opencode web baseURL error (#6181)

This commit is contained in:
Rohan Godha
2025-12-26 11:36:31 -06:00
committed by Aiden Cline
parent 57ad8211d5
commit af89e7f117

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