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

Function e2ePort

e2e/src/ports.ts:53–56  ·  view source on GitHub ↗
(envVar: string, offset: number)

Source from the content-addressed store, hash-verified

51export const portBlock = BLOCK_BASE + (hash(repoRoot) % BLOCK_COUNT) * BLOCK_SIZE;
52
53export const e2ePort = (envVar: string, offset: number): number => {
54 const fromEnv = process.env[envVar];
55 return fromEnv ? Number(fromEnv) : portBlock + offset;
56};
57
58const listenOn = (options: {
59 readonly port: number;

Callers 4

cloud.tsFile · 0.90
cloudflare.tsFile · 0.90
selfhost.tsFile · 0.90
selfhost-docker.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected