Skip to main content

upload-element-previews

Upload a Remotion Element's preview assets to remotion.media and replace local preview URLs. Use when given an Element slug, or when exactly one Element's preview assets are present in the current worktree.

Quellinformationen

Repository
remotion-dev/remotion
Letzte Quellaktivität
11. September 2026 um 09:02
Erkannte Sprache von SKILL.md
Englisch
Sterne
64.425
Forks
5.086

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
upload-element-previews
description
Upload a Remotion Element's preview assets to remotion.media and replace local preview URLs. Use when given an Element slug, or when exactly one Element's preview assets are present in the current worktree.
# Upload Element Previews 1. Identify the Element slug. Ask if it is ambiguous. 2. Choose the source: - Use `render` for fresh files in `.element-previews`. - Use `submission` for committed files in `static/elements`. 3. Upload the previews: ```bash cd packages/docs bun run upload-element-preview \ --element=<category>/<slug> \ --source=<render|submission> ``` Each upload uses a new random URL postfix, including when the Element already has hosted previews. This keeps previews from concurrent branches independent. 4. Replace `image`, `posterUrl`, and `videoUrl` with the newly printed `remotion.media` URLs. 5. If using `submission`, delete the local review assets. If using `render`, leave `.element-previews` uncommitted. 6. Commit and push when the work belongs on a branch.
Auf GitHub ansehen