MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / getApiUrl

Function getApiUrl

packages/core/src/utils/is-prod.ts:13–20  ·  view source on GitHub ↗
(prod?: boolean)

Source from the content-addressed store, hash-verified

11}
12
13export 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}

Callers 2

isLocalServerRunningFunction · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected