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.
| Step | Change | Verified |
|---|---|---|
| 1. deploy_media_mp4.py | New 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.py | New 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.py | Added EXCLUDE_MP4_PREFIXES = ("chiron-sourceaudio-",) with "-10card/" guard so non-10card mp4s still ship | Redeploy: 7057 files, 1074.5 MB, 3 blobs changed, READY |
| 4. Cross-host verification | Curled 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 host | page 200, mp4 200, src="https://drwu-media.vercel.app/…" |
if (total / 1e6 - mp4_mb) > 820) after a few clean deploys.
~/Projects/drwu-media/deploy_media_mp4.py~/Projects/drwu-htmls/scripts/rehost_mp4_srcs.py~/Projects/drwu-htmls/scripts/deploy_htmls_lean.py (EXCLUDE_MP4_PREFIXES)~/Projects/drwu-htmls/.vercelignore (added *.mp4 comment note; the deploy script's exclusion is what actually filters)