feat(astro): ship the photos in the static site (dist/media) #5

Merged
bdu merged 2 commits from staging into main 2026-11-04 21:54:26 +00:00
Owner
No description provided.
feat(astro): ship the photos in the static site (dist/media)
Some checks failed
ci/woodpecker/push/staging Pipeline failed
25f2500518
The build downloads every image size the pages use (thumb_720,
medium_1280, full_1920), the video file and its poster from the CMS and
links to /media/... instead of cms.m44.be, so Bunny serves the photos
and visitors never hit the VPS. A failed or empty download fails the
build; only `astro build` mirrors (explicit switch from an integration,
not NODE_ENV). The upload script already uploads and prunes dist/media.

Also fix bunny-upload.sh pruning: comm compared in the caller's locale
while the lists were sorted in the C locale, so with mixed-case names
the stale-file detection could misbehave. Regression test added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(astro): retry photo downloads on 429/5xx, fewer parallel workers
All checks were successful
ci/woodpecker/push/staging Pipeline was successful
f74cd57f73
In CI the CMS is on the same host, so six workers fetched small files
faster than the proxy's rate limit (100 req/s, burst 50) allows and the
build died on a 429. Downloads now retry 429, 5xx and network errors
with exponential backoff (Retry-After wins, capped at 30s), up to 5
attempts, with 3 workers. 4xx such as 404 still fail immediately.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bdu merged commit 771e18caa1 into main 2026-11-04 21:54:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bdu/m44!5
No description provided.