MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getBaseUrl

Function getBaseUrl

web/lib/api/files.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17// We maintain a single session per page load and reinitialize if it expires.
18
19function getBaseUrl(): string {
20 return (
21 (typeof process !== "undefined" && process.env.NEXT_PUBLIC_API_URL) ||
22 "http://localhost:3001"
23 );
24}
25
26function getApiKey(): string | undefined {
27 return typeof process !== "undefined"

Callers 2

doInitializeMethod · 0.70
callToolMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected