()
| 114 | } |
| 115 | |
| 116 | function getRandomEntry(): EntryConfig { |
| 117 | const values = Object.values(config); |
| 118 | const randomIndex = Math.floor(Math.random() * values.length); |
| 119 | return values[randomIndex]; |
| 120 | } |
| 121 | |
| 122 | async function getAssetBuffer(url: string): Promise<Buffer> { |
| 123 | const absoluteUrl = resolveResourceUrl(url); |