Skip to content

Add news-article-videos example - #19

Open
soniasriv wants to merge 1 commit into
shotstack:masterfrom
soniasriv:add-news-article-videos
Open

soniasriv wants to merge 1 commit into
shotstack:masterfrom
soniasriv:add-news-article-videos

Conversation

@soniasriv

Copy link
Copy Markdown
Contributor

Companion code for the news vertical: one 15 second video per article from one fixed template.

edit.json holds the design with {{PLACEHOLDER}} tokens; render.mjs adds a merge array per article and submits one render. The template sets cache to false so a hero image that changes at the same URL is fetched again. CALLBACK_URL adds a webhook. Following Musab's review, the loop is closed: status.mjs writes each finished video URL back onto its article in articles.json, and render.mjs skips articles that already have one, so a rerun renders only new stories.

Verified: prettier clean; every generated Edit JSON passes shotstack validate; fresh clone with no key, a wrong key and a bad SHOTSTACK_ENV each print one line and exit 1; a rejected key stops the batch after one line; README claims checked against the code; STANDARDS.md pre-PR checklist run; two-axis Standards/Spec review applied; rendered end to end on stage with the ids below. Musab reviewed all four vertical examples in #gtm on 17 Sep and his points are applied.

Stage renders (owner m0018rioc2, 18 Sep): harbour-beaches-closed 4f897f4b-e1c0-46f2-b75f-dc83b95f54f5, coastal-shipping-lane b8f941c9-ac07-4ee9-9fd0-786f09990de5, opera-house-restoration 1a9e7acc-be2b-4243-8c85-ded5879abaa5, 15 s each.

The root README bullet will conflict with the sibling vertical PRs; keep all bullets when resolving.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
reelestate Ignored Ignored Preview Sep 18, 2026 9:07am UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant