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

Function normalizeAccessTeamDomain

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

Source from the content-addressed store, hash-verified

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

Callers 2

loadConfigFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected