doesitarm/scripts
ThatGuySam 6cfbfbf530 Keep prod health checks and route fallbacks from failing on stale API entries
Add a Bun health script that exercises top-level, dynamic, and representative video routes against one or more hosts so prod regressions are visible from a single command.

Device pages now fall back to the bundled device list when the external API misses a slug, and orphaned tv slugs redirect to /benchmarks instead of returning a 500. Video fallback logic reuses the existing YouTube-to-listing builder so route reconstruction stays aligned with the current build logic.

Constraint: The external API host can lag behind the frontend build and omit per-slug JSON files that public routes still expect
Rejected: Import the generated video list directly | static/video-list.json is too large for a safe SSR fallback
Rejected: Leave missing tv routes as 500s | a stale public URL should degrade to a useful redirect instead of breaking the request
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Keep route fallbacks tied to build-time artifacts from the same repo so frontend and fallback data stay in sync
Tested: bun scripts/health http://127.0.0.1:4322; vitest ./test/prebuild/config-node.test.js ./test/prebuild/site-listings.test.js; pnpm run netlify-build
Not-tested: live production deploy before push
2026-04-06 10:51:49 -05:00
..
vercel-post-deploy Only rurnn post-deploy on macos 2023-02-11 17:22:12 -06: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 chore(node): move repo tooling to node 24 2026-03-15 12:55:25 -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 Fix operator 2022-12-17 13:53:04 -06:00
stork-netlify.sh fix(stork): support netlify ubuntu 24 builds 2026-03-15 11:57:41 -05:00
vercel-build.js Use pnpm for vercel build script 2023-08-12 14:01:33 -05:00