()
| 86 | } |
| 87 | |
| 88 | function loadTinybFile() { |
| 89 | for (const candidate of TINYB_FILE_CANDIDATES) { |
| 90 | try { |
| 91 | if (fs.existsSync(candidate)) { |
| 92 | const raw = fs.readFileSync(candidate, "utf8"); |
| 93 | const data = JSON.parse(raw); |
| 94 | return { path: candidate, data }; |
| 95 | } |
| 96 | } catch { |
| 97 | // ignore malformed files and continue |
| 98 | } |
| 99 | } |
| 100 | return null; |
| 101 | } |
| 102 | |
| 103 | function resolveTinybirdAuth() { |
| 104 | const envHost = process.env.TINYBIRD_HOST?.trim(); |
no outgoing calls
no test coverage detected