withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix: remove dead else branch in csp insertDirective The else branch in `getCsp().insertDirective` called `.push` on `state.result.directives` after the if-condition had just established that value was nullish, which would have thrown a TypeError if reached. In practice `directives` is always initialized to an array, so the else was unreachable, but the shape of the code was misleading. Simplify to match the sibling `insertScriptResource` / `insertStyleResource` methods: guard on `state.result`, then update directives via pushDirective.
stefanmachhammer:fix/csp-insert-directive-dead-else
9 hours ago
docs: fix typos in astro:i18n middleware JSDoc (#16574)
main
18 hours ago
fix(fetch): skip prerendered 404 routes in FetchState fallback Related: d69f858475 ## Goal The getCustom404Route() fix in this PR correctly finds the 404 route by path instead of the broken component-name comparison. But when the 404 page is prerendered (export const prerender = true), setting it as routeData causes the pipeline to attempt SSR rendering of a page that was already built to static HTML at build time. This crashes with a 500 instead of serving the pre-built 404 page. ## Decisions - Guard the fallback with !custom404.prerender: prerendered 404 pages must go through the renderError -> prerenderedErrorPageFetch path, which reads the HTML from disk. Only SSR 404 routes should be set as routeData so middleware can run and the component renders at runtime. ## Changes - fetch-state.ts: Added prerender check so the 404 fallback only activates for SSR routes. Prerendered routes leave routeData unset, which triggers the error handler's disk-serving path downstream.
flue/fix-16907
21 hours ago
fix: astro() marks all pipeline features as used (#16899) * fix: astro() marks all pipeline features as used AstroHandler is the batteries-included handler that wires up every pipeline feature internally. Mark all PipelineFeatures bits at the top of handle() so the one-shot warnMissingFeatures check in BaseApp never fires a false positive when the first request short-circuits (e.g. a redirect route skips middleware). * add changeset * move allFeatures mask to base-pipeline.ts per review
main
1 day ago
[ci] format
main
1 day ago
feat(fonts): better bold fallbacks (#16908)
main
1 day ago
Fix i18n redirectToDefaultLocale not working with prefixDefaultLocale (#16887) * fix(i18n): preserve ROUTE_TYPE_HEADER for i18n post-processing (#16800) * chore: move fix somewhere else * chore: update changeset --------- Co-authored-by: ematipico <estoppa@cloudflare.com>
main
1 day ago
Update .changeset/fix-advanced-routing-404-fallback.md
flue/fix-16907
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix: remove dead else branch in csp insertDirective
#16921
9 hours ago
ae174a9
stefanmachhammer:fix/csp-insert-directive-dead-else
CodSpeed Performance Gauge
0%
Fix 404 route resolution for experimental.advancedRouting with astro/hono handlers
#16911
21 hours ago
824134b
flue/fix-16907
CodSpeed Performance Gauge
0%
fix: astro() marks all pipeline features as used
#16899
1 day ago
4cece59
fix/astro-marks-all-features-used
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs