doesitarm/test/prebuild
ThatGuySam 820e495d2d Keep redirect lookups from crashing SSR pages
Dynamic Astro routes were reading Netlify redirect config through a cwd-relative path, which is fragile inside a serverless runtime and was taking detail pages down with 500s before render.

Resolve netlify.toml by searching from the module directory and current working directory, and fail open in request-time redirect lookup so a config read problem does not block page rendering.

Constraint: Netlify serverless cwd is not guaranteed to be the repo root
Rejected: Inline redirects into route modules | would duplicate platform config and drift from source of truth
Rejected: Leave redirect lookup hard-failing | one config read failure should not take down unrelated pages
Confidence: medium
Scope-risk: narrow
Reversibility: clean
Directive: Keep redirect config lookup independent of process cwd anywhere server code reads deploy config files
Tested: vitest ./test/prebuild/config-node.test.js; pnpm run netlify-build
Not-tested: live Netlify production deploy before push
2026-04-06 10:31:57 -05:00
..
config-node.test.js Keep redirect lookups from crashing SSR pages 2026-04-06 10:31:57 -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