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