(url: string)
| 8 | let resolvingApiUrl: Promise<string> | null = null; |
| 9 | |
| 10 | async function probeBackendUrl(url: string): Promise<string | null> { |
| 11 | try { |
| 12 | await axios.get(`${url}/health`, { timeout: 500 }); |
| 13 | return url; |
| 14 | } catch { |
| 15 | return null; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | async function discoverBackendPort(): Promise<string> { |
| 20 | if (cachedApiUrl) return cachedApiUrl; |
no outgoing calls
no test coverage detected