upload-r2
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.
By remotion-dev · 398 installs
npx skills add remotion-dev/remotion --skill upload-r2
Source repository · Upstream listing
Upload R2 Asset
Use this for large media assets that should be hosted on https://remotion.media/ instead of committed to Git.
Workflow
1. Find the main worktree:
Prefer the worktree on refs/heads/main , usually /Users/jonathanburger/remotion .
2. Load R2 credentials from the main worktree:
Do not print secret values. The required variables are AWS ACCESS KEY ID and AWS SECRET ACCESS KEY .
3. Upload the file to the parser media bucket using Bun's S3 compatible client:
4. Verify the public URL:
5. Replace local asset usage with the hosted URL and delete the local binary.
Do not wrap remote URLs in staticFile() : staticFile() rejects http:// and https:// URLs. Use the URL string directly, for example:
6. Run the focused lint or stylecheck for touched packages, then commit and push.