MCPcopy Index your code
hub / github.com/Waishnav/devspace / localPublicBaseUrl

Function localPublicBaseUrl

src/config.ts:251–257  ·  view source on GitHub ↗
(host: string, port: number)

Source from the content-addressed store, hash-verified

249}
250
251function localPublicBaseUrl(host: string, port: number): string {
252 const publicHost = host === "0.0.0.0" || host === "::" ? "127.0.0.1" : host;
253 const formattedHost = publicHost.includes(":") && !publicHost.startsWith("[")
254 ? `[${publicHost}]`
255 : publicHost;
256 return `http://${formattedHost}:${port}`;
257}

Callers 1

loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected