Upload Element Previews
- Identify the Element slug. Ask if it is ambiguous.
- Choose the source:
- Use
renderfor fresh files in.element-previews. - Use
submissionfor committed files instatic/elements.
- Use
- Upload the previews:
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.
- Replace
image,posterUrl, andvideoUrlwith the newly printedremotion.mediaURLs. - If using
submission, delete the local review assets. If usingrender, leave.element-previewsuncommitted. - Commit and push when the work belongs on a branch.