File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,13 @@ declare global {
2929}
3030
3131const host = import . meta. env . VITE_OPENCODE_SERVER_HOST ?? "127.0.0.1"
32- const port = window . __OPENCODE__ ?. port ?? import . meta. env . VITE_OPENCODE_SERVER_PORT ?? location . port ?? "4096"
32+ const port = window . __OPENCODE__ ?. port ?? import . meta. env . VITE_OPENCODE_SERVER_PORT ?? "4096"
3333
3434const url =
3535 new URLSearchParams ( document . location . search ) . get ( "url" ) ||
36- ( location . hostname . includes ( "opencode.ai" )
36+ ( location . hostname . includes ( "opencode.ai" ) || location . hostname . includes ( "localhost" )
3737 ? `http://${ host } :${ port } `
38- : location . hostname . includes ( "localhost" ) || location . hostname === "127.0.0.1"
39- ? `${ location . protocol } //${ location . host } `
40- : "/" )
38+ : "/" )
4139
4240export function App ( ) {
4341 return (
You can’t perform that action at this time.
0 commit comments