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

Function previewBaseUrl

packages/cli/src/commands/preview.ts:289–291  ·  view source on GitHub ↗
(port: number, host = "127.0.0.1")

Source from the content-addressed store, hash-verified

287// `host` is the loopback the server actually bound (Vite binds `[::1]`, embedded
288// binds `127.0.0.1`); default to IPv4 for the embedded/legacy callers.
289function previewBaseUrl(port: number, host = "127.0.0.1"): string {
290 return `http://${host}:${port}`;
291}
292
293function absolutePreviewUrl(port: number, path: string, host = "127.0.0.1"): string {
294 if (/^https?:\/\//.test(path)) return path;

Callers 3

absolutePreviewUrlFunction · 0.85
previewServerPayloadFunction · 0.85
printCurrentContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected