fix: opencode web baseURL error (#6181)
This commit is contained in:
parent
25c68c8061
commit
1bcf8d8806
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ const url = iife(() => {
|
||||||
if (import.meta.env.DEV)
|
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://${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() {
|
export function App() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue