()
| 25 | } |
| 26 | |
| 27 | export async function readConfigFile() { |
| 28 | try { |
| 29 | const res = await fetch(CONFIG_PATH, { cache: 'no-store' }); |
| 30 | if (!res.ok) return null; |
| 31 | const json = await res.json(); |
| 32 | return json && typeof json === 'object' ? json : null; |
| 33 | } catch { |
| 34 | return null; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | function mergeConfigs(...sources) { |
| 39 | const out = {}; |
no outgoing calls
no test coverage detected