Commit graph

10 commits

Author SHA1 Message Date
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
ThatGuySam
eaeff51cc9 Keep YouTube listing data available in clean builds
Netlify prebuild tests import the YouTube listing JSON at module load time, so a fresh checkout needs a baseline copy of that data before any generated API step runs. The fetched JSON is committed and explicitly unignored while the broader static/api output remains generated.

Constraint: Netlify runs test-prebuild before Astro generation creates generated API files

Rejected: Move all API generation before tests | broader build-order change with more external dependencies

Confidence: high

Scope-risk: narrow

Directive: Keep static/api/youtube-videos.json tracked unless helpers/site-listings.js stops importing it at module load time

Tested: pnpm run with-env vite-node /tmp/fetch-youtube-videos.mjs

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

Tested: pnpm run netlify-prebuild:test-prebuild-functions
2026-04-25 14:44:49 -05:00
Sam Carlton
900001e9e7 Add fo-verify file 2022-07-15 15:00:31 -05:00
Sam Carlton
dcfb6d321c Add robots.txt 2022-07-07 12:02:18 -05:00
Sam Carlton
d8395fd37d Add api directory 2022-02-27 13:03:40 -06:00
Sam Carlton
db82bdbb03
Create 3215494.html 2021-03-25 15:37:19 -05:00
Sam Carlton
32d8413a72 Use square mark as twitter image 2020-11-28 17:11:59 -06:00
Sam Carlton
fa1fcbc433 Add social meta images 2020-11-28 16:50:24 -06:00
Sam Carlton
44ffb9976d Update favicon 2020-09-19 18:54:08 -05:00
Sam Carlton
cdf047d777 Initialize Nuxt 2020-09-15 19:02:15 -05:00