WIP: Update website after the event #36

Draft
kritzl wants to merge 9 commits from post-event into main
Showing only changes of commit 4cc00d26b4 - Show all commits

fix image file read with staging base path
All checks were successful
/ build (pull_request) Successful in 45s

kritzl 2026-10-06 20:03:36 +02:00
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM

View file

@ -55,7 +55,8 @@ for (const image_name in images_raw) {
const imageResponse = await fetch(imagePath) const imageResponse = await fetch(imagePath)
buffer = Buffer.from(await imageResponse.arrayBuffer()) buffer = Buffer.from(await imageResponse.arrayBuffer())
} else { } else {
const imagePath = "./dist" + image.image.src const path = image.image.src.substring((import.meta.env.BASE_URL).length).replace(/(^[\/]*|[\/]*$)/g, '')
const imagePath = "./dist/" + path
buffer = await readFile(imagePath) buffer = await readFile(imagePath)
} }