Function
envBool
(key: string, fallback: boolean)
Source from the content-addressed store, hash-verified
| 327 | return Number.isFinite(n) ? n : fallback; |
| 328 | }; |
| 329 | const envBool = (key: string, fallback: boolean): boolean => { |
| 330 | const raw = env(key); |
| 331 | if (raw === undefined) return fallback; |
| 332 | return raw === "true"; |
| 333 | }; |
| 334 | const envVp9CpuUsed = (): number => { |
| 335 | const raw = env("PRODUCER_VP9_CPU_USED"); |
| 336 | if (raw === undefined || raw === "") return DEFAULT_CONFIG.vp9CpuUsed; |
Tested by
no test coverage detected