offload-r2
Installation
SKILL.md
Offload R2 Asset
Host media on https://remotion.media/ while preserving the original file in the worktree as an ignored local copy.
Workflow
-
Find the main worktree with
git worktree list --porcelain. Prefer the worktree onrefs/heads/main, normally/Users/jonathanburger/remotion. -
Choose a stable, descriptive object key. Use a feature-specific directory prefix when it prevents collisions, for example
studio-close-ups/demo.mp4. -
Load credentials from the main worktree without printing them:
--env-file=/Users/jonathanburger/remotion/packages/remotion-media/.envThe required variables are
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY.