Commit graph

8 commits

Author SHA1 Message Date
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
Sam Carlton
4272d7b687 Only cache list and king pages for 1 minute 2022-06-27 16:49:41 -05:00
Sam Carlton
ef2159602f Increase list cache time to 6 hours 2022-06-17 12:15:30 -05:00
Sam Carlton
6c7cbf5782 Comment on context of cache-control 2022-06-15 13:22:18 -05:00
Sam Carlton
38ff3bb510 Add applyResponseDefaults helper 2022-06-15 12:48:09 -05:00
Sam Carlton
8ca200a548 Move nuxtHead into config and rename config-node 2022-06-08 13:10:12 -05:00
Sam Carlton
f3ee5e5505 Disable logger 2022-05-04 19:16:39 -05:00
Sam Carlton
2bf0572a06 Add catchRedirectResponse helper 2022-05-04 13:57:02 -05:00