1export 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
9import { UNWRAP } from "@clo/lib/assert";
10import * as progress from "@clo/lib/progress";