/** * Large files (audio, video, game builds, 3D models, the résumé) live on the * NAS in Nextcloud, not in git. They're served through this site's /media/* * proxy so URLs stay on yoyos.sh and headers can be set per file type. * * media('music/demo.mp3') -> '/media/music/demo.mp3' */ export function media(path: string): string { if (/^https?:\/\//.test(path)) return path; return `/media/${path.replace(/^\/+/, '').split('/').map(encodeURIComponent).join('/')}`; }