MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolvePublicOrigin

Function resolvePublicOrigin

packages/core/sdk/src/public-origin.ts:52–59  ·  view source on GitHub ↗
(options: {
  readonly explicit?: string | undefined;
  readonly env: EnvRecord;
})

Source from the content-addressed store, hash-verified

50 * per-request origin for a Worker — and decides whether to warn).
51 */
52export const resolvePublicOrigin = (options: {
53 readonly explicit?: string | undefined;
54 readonly env: EnvRecord;
55}): string | undefined => {
56 const explicit = options.explicit?.trim();
57 if (explicit) return explicit;
58 return getPlatformOrigin(options.env);
59};
60
61/**
62 * True unless this is explicitly local dev or a test run. A staging/demo deploy

Callers 3

loadConfigFunction · 0.90
resolveWebBaseUrlFunction · 0.90

Calls 1

getPlatformOriginFunction · 0.85

Tested by

no test coverage detected