()
| 100 | } |
| 101 | |
| 102 | const getCurrentUrl = () => { |
| 103 | if (location.hostname.includes("opencode.ai")) return "http://localhost:4096" |
| 104 | if (import.meta.env.DEV) |
| 105 | return `http://${import.meta.env.VITE_OPENCODE_SERVER_HOST ?? "localhost"}:${import.meta.env.VITE_OPENCODE_SERVER_PORT ?? "4096"}` |
| 106 | return location.origin |
| 107 | } |
| 108 | |
| 109 | const getDefaultUrl = () => { |
| 110 | const lsDefault = readDefaultServerUrl() |
no outgoing calls
no test coverage detected