Commit graph

25 commits

Author SHA1 Message Date
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
Sam Carlton
e2b9ea8fef Store apps related to video as app links 2022-06-09 13:21:05 -05:00
Sam Carlton
8f9a0635e7 Remove unused import 2022-06-06 19:28:19 -05:00
Sam Carlton
ea6f8d480c Use YouTube videos from local JSON 2022-06-06 17:36:16 -05:00
Sam Carlton
6f28492a72 Build video list conurrently 2022-02-27 16:04:13 -06:00
Sam Carlton
daa3f03356 Try env.VIDEO_SOURCE first 2021-08-16 12:40:31 -05:00
Sam Carlton
00f1f1397c Move makeSlug to function 2021-04-17 22:36:06 -05:00
Sam Carlton
4a9156cfd8 Fuzzy match whole worfd for title and timestamps
Fix super short app names matching title and timestamps
2021-04-10 18:10:33 -05:00
Sam Carlton
e2dcf8bac4 Exclude youtube thumbnails larger that 700px wide 2021-04-10 16:13:16 -05:00
Sam Carlton
1b6fc4239b Pull videos from prebuilt json 2021-03-27 14:42:38 -05:00
Sam Carlton
c2bb2d9787 Move matchesWholeWord into mathing file 2021-03-04 20:44:23 -06:00
Sam Carlton
a5333b1939 Rename parseGithubDate to parseDate 2021-03-04 20:25:06 -06:00
Sam Carlton
9d4d447802 Preprocess thumbnail attributes 2021-01-23 15:28:36 -06:00
Sam Carlton
fd3378b0f0 Tag videos based on apps featured 2020-12-27 10:29:17 -06:00
Sam Carlton
debc264ce7 Skip deleted videos 2020-12-26 20:26:16 -06:00
Sam Carlton
d6aaafea03 Add channel credits 2020-12-26 19:55:49 -06:00
Sam Carlton
6e8e39c95c List videos by tag 2020-12-26 18:38:41 -06:00
Sam Carlton
d434b19c9b Use whole word regex matches for descriptions 2020-12-26 13:29:47 -06:00
Sam Carlton
fa222d3116 Fix video routes generating error 2020-12-26 12:59:39 -06:00
Sam Carlton
a2e8ad9f43 Add thumbnails to video list 2020-12-10 23:41:01 -06:00
Sam Carlton
12a922b2ba Sort videos newest first 2020-12-05 23:10:24 -06:00
Sam Carlton
8d954f76f0 Add name and id to video list 2020-12-05 22:07:32 -06:00
Sam Carlton
ebd7446ee0 Clean up build video list 2020-12-05 18:51:04 -06:00
Sam Carlton
e8f44a6d3f Add -i- before youtube ids 2020-12-05 18:50:09 -06:00
Sam Carlton
f02460759f Update app name and add video building scripts 2020-12-05 18:49:49 -06:00