(prod?: boolean)
| 11 | } |
| 12 | |
| 13 | export function getApiUrl(prod?: boolean) { |
| 14 | if (prod) return 'https://api.langbase.com'; |
| 15 | else return 'http://localhost:9000'; |
| 16 | |
| 17 | // TODO: Make local port configurable. |
| 18 | // return isProd() ? 'https://api.langbase.com' : 'http://localhost:9000'; |
| 19 | // return isProd() ? 'http://localhost:8787' : 'http://localhost:9000'; |
| 20 | } |
no outgoing calls
no test coverage detected