(key: string, value: string)
| 126 | } |
| 127 | |
| 128 | const validateBoolean = (key: string, value: string): string | undefined => { |
| 129 | const normalized = value.trim().toLowerCase() |
| 130 | if (normalized === 'true' || normalized === 'false') { |
| 131 | return undefined |
| 132 | } |
| 133 | |
| 134 | return `${key} must be true or false` |
| 135 | } |
| 136 | |
| 137 | export const validateEnvPair = (key: string, value: string): string | undefined => { |
| 138 | if (!isSupportedEnvKey(key)) { |