(url: string)
| 81 | |
| 82 | // Helper: fetch a file from a URL. |
| 83 | export async function fetchFile(url: string): Promise<string | null> { |
| 84 | try { |
| 85 | const response = await fetch(url); |
| 86 | return response.ok ? await response.text() : null; |
| 87 | } catch { |
| 88 | return null; |
| 89 | } |
| 90 | } |