MCPcopy Index your code
hub / github.com/simstudioai/sim / getConfiguredEnvironmentUrl

Function getConfiguredEnvironmentUrl

apps/sim/lib/copilot/server/agent-url.ts:33–36  ·  view source on GitHub ↗
(environment: MothershipEnvironment)

Source from the content-addressed store, hash-verified

31}
32
33function getConfiguredEnvironmentUrl(environment: MothershipEnvironment): string | null {
34 if (environment === 'default') return null
35 return normalizeUrl(ENVIRONMENT_URLS[environment])
36}
37
38function getDefaultMothershipBaseURL(fallbackUrl?: string | null): string {
39 const fallback = typeof fallbackUrl === 'string' ? fallbackUrl : undefined

Callers 1

getMothershipBaseURLFunction · 0.85

Calls 1

normalizeUrlFunction · 0.70

Tested by

no test coverage detected