add fail save for failed img fetching at build time

This commit is contained in:
2026-03-02 21:14:40 +01:00
parent 67bbc3cf9a
commit c4da0683ed
2 changed files with 6 additions and 1 deletions

View File

@@ -19,7 +19,11 @@ if (response.ok) {
const middle = Math.round(files.length / 2);
shuffeld = files.slice(0,middle);
images = files.slice(middle);
} else {
console.error("FAILED TO FETCH");
process.exit(1);
}
---
<!doctype html>