doesitarm/test
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
..
_artifacts Add artifacts temp directory 2022-07-16 14:48:19 -05:00
_disabled/scanner refactor(scanner): type the worker path and align app-test results 2026-04-04 14:58:25 -05:00
api update: refactor into typescript 2025-02-10 19:19:12 -06:00
helpers update: enable helpers again 2024-12-27 15:25:57 -06:00
listings update: initial vitest refactor for listings 2025-01-11 19:19:45 -06:00
msw Move msw listener to file 2023-08-12 16:14:45 -05:00
playwright refactor(scanner): type the worker path and align app-test results 2026-04-04 14:58:25 -05:00
prebuild Keep redirect lookups from crashing SSR pages 2026-04-06 10:31:57 -05:00
scanner fix(scanner): rename plist parser module to avoid CI cycle false positive 2026-04-04 18:31:46 -05:00
main.test.ts update: refactor main into vitest 2025-02-10 20:27:05 -06:00