mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
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 |
||
|---|---|---|
| .. | ||
| api | ||
| app-store | ||
| astro | ||
| macho | ||
| pagefind | ||
| scanner | ||
| search | ||
| stork | ||
| app-derived.js | ||
| app-files-scanner.js | ||
| array.js | ||
| build-app-list.js | ||
| build-device-list.js | ||
| build-game-list.js | ||
| build-homebrew-list.js | ||
| build-payload.js | ||
| build-video-list.js | ||
| bundles.js | ||
| categories.js | ||
| check-types.js | ||
| cli-options.js | ||
| config-node.js | ||
| constants.js | ||
| devices.js | ||
| environment.js | ||
| get-list-summary-numbers.js | ||
| get-list.js | ||
| json.js | ||
| listing-page.js | ||
| lite-youtube.js | ||
| matching.js | ||
| parse-date.js | ||
| public-runtime-config.mjs | ||
| related.js | ||
| scroll.js | ||
| searchable-list.js | ||
| slug.js | ||
| sort-list.js | ||
| statuses.js | ||
| structured-data.js | ||
| url.js | ||