Kid mode 🧒

The main website was carrying almost 2 GB of tarot videos on every deploy, which kept blowing the size cap. The videos moved to a separate video host, and the pages now link to the videos there. The main website is now less than half the size.

drwu-htmls infra · deploy cap fix · 2026-07-07

Moved chiron-10card MP4s to drwu-media, deploy cut 63%

The main dashboards project kept blowing the Vercel deploy cap because 24 chiron-tarot 10-card MP4s (~1.79 GB) were shipping with every deploy. They now live on drwu-media.vercel.app and the pages reference them there.

Deploy size, before and after

2862 MB
Total, before
1074 MB
Total, after
2049 MB
Video, before
261 MB
Video, after
1788 MB
Moved to media host
63%
Deploy shrink

What changed

StepChangeVerified
1. deploy_media_mp4.pyNew script (twin of deploy_media.py, scoped to chiron-sourceaudio-*-10card and *.mp4). Streams bytes IN-PLACE from drwu-htmls/public.1788 MB deployed to drwu-media, all sha-dedup hit, final state READY
2. rehost_mp4_srcs.pyNew script rewrites every src="/chiron-sourceaudio-*-10card/*.mp4" and href="/chiron-sourceaudio-*-10card/*.mp4" to https://drwu-media.vercel.app/…. Writes .bak-pre-mp4-rehost sidecars per file.64 HTML files touched, 87 refs rewritten
3. deploy_htmls_lean.pyAdded EXCLUDE_MP4_PREFIXES = ("chiron-sourceaudio-",) with "-10card/" guard so non-10card mp4s still shipRedeploy: 7057 files, 1074.5 MB, 3 blobs changed, READY
4. Cross-host verificationCurled the sample 10-card page and the drwu-media mp4 URL to confirm both are 200 and the src ref points at the correct external hostpage 200, mp4 200, src="https://drwu-media.vercel.app/…"
The blocked / raised cap can come back down. Old note in deploy_htmls_lean.py said the cap was raised from 4600 → 5800 → 7000 MB. With the fix, the non-video content is 820 MB, safely under the original 4600 cap. Recommend dropping the current cap back to 4800 MB (line 122 if (total / 1e6 - mp4_mb) > 820) after a few clean deploys.

Files

Not done this pass