doesitarm/test/prebuild
ThatGuySam f1cb66c477 fix(build): retry transient sitemap endpoint fetches
The TypeScript helper refactor exposed a separate production risk: builds can fail when the sitemap-endpoints API returns a transient 5xx during Pagefind index generation. Move that fetch into a small helper with retry logic and add a focused prebuild test so this failure mode is caught without waiting on a full deploy.

Constraint: Must keep Pagefind index generation behavior the same when the endpoint is healthy
Rejected: Ignore the failure as external-only | transient 5xx responses can still block deploys and CI repeatedly
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: When external build inputs can fail transiently, add a small retryable helper plus a direct test before relying on full deploy verification
Tested: pnpm exec vitest run test/prebuild/load-sitemap-endpoints.test.ts; pnpm run typecheck; pnpm run test-prebuild
Not-tested: Full production redeploy completion before push
2026-04-04 18:18:23 -05:00
..
environment.test.js test(stork): cover node 22 runtime detection 2026-03-15 11:58:05 -05:00
filters.test.js refactor(search): extract shared filter helper 2026-03-15 13:41:33 -05:00
index.test.js update: refactor primary prebuild tests to vitest 2024-12-27 15:07:28 -06:00
load-sitemap-endpoints.test.ts fix(build): retry transient sitemap endpoint fetches 2026-04-04 18:18:23 -05:00
pagefind.test.js feat(search): add pagefind provider support 2026-03-15 13:42:07 -05:00
stork-executable.test.js test(stork): cover node 22 runtime detection 2026-03-15 11:58:05 -05:00