(value: string | undefined)
| 28 | // --------------------------------------------------------------------------- |
| 29 | |
| 30 | const truthy = (value: string | undefined): boolean => { |
| 31 | if (value === undefined) return false; |
| 32 | const normalized = value.trim().toLowerCase(); |
| 33 | return normalized === "1" || normalized === "true" || normalized === "yes"; |
| 34 | }; |
| 35 | |
| 36 | export const isFetchDisabled = ( |
| 37 | env: Readonly<Record<string, string | undefined>> = process.env, |