| 1 | export async function main() { |
| 2 | const response = await fetch("http://localhost:10000/.sitegen/rebuild"); |
| 3 | if (!response.ok) throw new Error(response.statusText); |
| 4 | using node = progress.start("remote build"); |
| 5 | using remoteNode = progress.decodeByteStream(UNWRAP(response.body), node); |
| 6 | await remoteNode.once("end"); |
| 7 | } |
| 8 | |
| 9 | import { UNWRAP } from "@clo/lib/assert"; |
| 10 | import * as progress from "@clo/lib/progress"; |