MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / studioApiUrl

Function studioApiUrl

packages/cli/src/utils/studioSelectionClient.ts:95–98  ·  view source on GitHub ↗
(server: ActiveServer, route: string)

Source from the content-addressed store, hash-verified

93}
94
95export function studioApiUrl(server: ActiveServer, route: string): string {
96 const host = server.host ?? "127.0.0.1";
97 return `http://${host}:${server.port}/api/projects/${encodeURIComponent(server.projectName)}/${route}`;
98}
99
100// Vite dev servers bind IPv6 loopback (`::1`) by default while embedded servers
101// bind IPv4 (`127.0.0.1`), so probe both — a single family misses the other and

Callers 3

studioSelectionUrlFunction · 0.85
fetchStudioLintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected