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

Function normalizeAccessTeamDomain

apps/host-cloudflare/src/config.ts:99–103  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

97 .filter((part) => part.length > 0);
98
99const normalizeAccessTeamDomain = (value: string | undefined): string =>
100 (value ?? "")
101 .trim()
102 .replace(/^https?:\/\//, "")
103 .replace(/\/+$/, "");
104
105export const missingCloudflareAccessVars = (env: CloudflareAccessEnv): readonly string[] => {
106 if (env.ENABLE_DEV_AUTH === "true") return [];

Callers 2

loadConfigFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected