doesitarm/scripts
ThatGuySam 3d19c60670 Keep YouTube fallbacks small enough to review
The first baseline committed the raw YouTube API dump, which fixed clean builds but carried unused API metadata. The route fallback only needs prebuilt listing objects, so this replaces the raw seed with slug-keyed listing fallbacks and adds a refresh script that fetches the latest source data before projecting it.

Constraint: helpers/site-listings.js must work in a fresh checkout before generated static/api output exists

Rejected: Commit the full raw YouTube JSON | unnecessarily large and mostly unused by the fallback path

Rejected: Drop descriptions only | smaller but would weaken app-link and tag matching semantics

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Refresh static/api/youtube-video-listings.json via scripts/update-youtube-video-listing-fallbacks.js, not by committing static/api/youtube-videos.json

Tested: pnpm run with-env vite-node scripts/update-youtube-video-listing-fallbacks.js

Tested: pnpm run with-env vitest test/prebuild/site-listings.test.js

Tested: pnpm run netlify-prebuild:test-prebuild-functions

Tested: pnpm run netlify-prebuild
2026-04-25 15:13:29 -05:00
..
vercel-post-deploy Finish axios migration via shared native HTTP helper 2026-04-06 12:09:16 -05:00
build-pagefind-index.js fix(build): retry transient sitemap endpoint fetches 2026-04-04 18:18:23 -05:00
build-search-index.js feat(search): add pagefind provider support 2026-03-15 13:42:07 -05:00
build-stork-index.js Add build-stork-index node script 2022-05-10 13:18:38 -05:00
download-sitemaps.js Finish axios migration via shared native HTTP helper 2026-04-06 12:09:16 -05:00
download-stork-executable.js Add download-stork-executable script 2022-05-10 13:14:39 -05:00
download-stork-toml.js Add downloadStorkToml helper and script 2022-05-09 16:13:47 -05:00
health Keep prod health checks and route fallbacks from failing on stale API entries 2026-04-06 10:51:49 -05:00
scan-new-apps.js Finish axios migration via shared native HTTP helper 2026-04-06 12:09:16 -05:00
stork-netlify.sh fix(stork): support netlify ubuntu 24 builds 2026-03-15 11:57:41 -05:00
update-youtube-video-listing-fallbacks.js Keep YouTube fallbacks small enough to review 2026-04-25 15:13:29 -05:00
vercel-build.js Use pnpm for vercel build script 2023-08-12 14:01:33 -05:00