MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / instanceUrl

Function instanceUrl

packages/worker-utils/src/hostname-label.ts:197–199  ·  view source on GitHub ↗
(label: string, env: HostSuffixEnv)

Source from the content-addressed store, hash-verified

195 * cases (bare suffix, multi-label, unparseable label). Callers use this
196 * to decide whether the request should be handled by the host-based
197 * branch (which may still return 404) or fall through to cookie-based
198 * routing. Case-insensitive.
199 */
200export function hostMatchesInstanceSuffix(host: string, env: HostSuffixEnv): boolean {
201 return host.toLowerCase().endsWith(hostSuffix(env).toLowerCase());
202}

Callers 2

buildEnvVarsFunction · 0.90

Calls 2

urlSchemeFunction · 0.85
hostSuffixFunction · 0.85

Tested by

no test coverage detected