MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getApiBaseUrlHost

Function getApiBaseUrlHost

src/services/analytics/growthbook.ts:439–449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

437 * is absent for direct-API users. Hostname only — no path/query/creds.
438 */
439export function getApiBaseUrlHost(): string | undefined {
440 const baseUrl = process.env.ANTHROPIC_BASE_URL
441 if (!baseUrl) return undefined
442 try {
443 const host = new URL(baseUrl).host
444 if (host === 'api.anthropic.com') return undefined
445 return host
446 } catch {
447 return undefined
448 }
449}
450
451/**
452 * Get user attributes for GrowthBook from CoreUserData

Callers 1

getUserAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected