Loading...
Loading...
Upload large Remotion repository assets to the Cloudflare R2 bucket behind remotion.media and replace local public/ assets with hosted URLs. Use when a file is too large for Git or when a PR should avoid committing media binaries by hosting them on remotion.media.
npx skill4agent add remotion-dev/remotion upload-r2https://remotion.media/git worktree list --porcelainrefs/heads/main/Users/jonathanburger/remotion--env-file=/Users/jonathanburger/remotion/packages/remotion-media/.envAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYparser-mediabun --env-file=/Users/jonathanburger/remotion/packages/remotion-media/.env -e "import {S3Client} from 'bun'; const filePath='<local-file>'; const key='<remote-file-name>'; const client=new S3Client({accessKeyId:Bun.env.AWS_ACCESS_KEY_ID, secretAccessKey:Bun.env.AWS_SECRET_ACCESS_KEY, endpoint:'https://2fe488b3b0f4deee223aef7464784c46.r2.cloudflarestorage.com', bucket:'parser-media'}); const file=Bun.file(filePath); if (await client.exists(key)) { const stat=await client.stat(key); if (stat.size===file.size) { console.log('exists-same-size', key, file.size); process.exit(0); } } await client.write(key, file); const stat=await client.stat(key); console.log('uploaded', key, stat.size);"curl -I --fail https://remotion.media/<remote-file-name>staticFile()staticFile()http://https://<Video src="https://remotion.media/example.mp4" />