withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
refactor: extract ErrorHandler strategy and prepareResponse helper Decouple renderError and prepareResponse from BaseApp so the request pipeline no longer depends on app-level methods for these concerns. - prepareResponse moves to core/app/prepare-response.ts as a pure helper. AstroHandler and the error handlers call it directly instead of going through BaseApp. - Introduce an ErrorHandler interface in core/errors/handler.ts. - DefaultErrorHandler (core/errors/default-handler.ts) holds the 404/500 route rendering, prerendered error page fetch, and mergeResponses logic that previously lived on BaseApp. - DevErrorHandler (core/errors/dev-handler.ts) is shared by the Vite dev server and the non-runnable dev pipeline, parameterized by a shouldInjectCspMetaTags flag (the only real difference between the two overrides). - BuildErrorHandler (core/errors/build-handler.ts) throws on 500 and delegates other errors to DefaultErrorHandler with prerenderedErrorPageFetch cleared. - BaseApp exposes a protected createErrorHandler() factory; subclasses override this instead of overriding renderError. BaseApp#renderError() now just forwards to the configured handler. Pure refactor with no behavioral changes. All tests pass, lint:ci passes.
advanced-routing
10 minutes ago
linting and tests
feature/ast-68-fix-vite-build-fail-on-netlify-server-astro16196
35 minutes ago
fix(core): clean chunk name
feature/ast-68-fix-vite-build-fail-on-netlify-server-astro16196
45 minutes ago
fix lint: use FetchHandler type and drop unused export - Annotate DefaultFetchHandler#fetch with the FetchHandler type so types.ts is no longer unused (fixes knip 'unused files'). - Drop the export on renderOptionsSymbol since only same-file helpers use it (fixes knip 'unused exports').
advanced-routing
45 minutes ago
fix(core): clean chunk name
feature/ast-68-fix-vite-build-fail-on-netlify-server-astro16196
46 minutes ago
refactor: introduce DefaultFetchHandler layer between BaseApp and AstroHandler Add an intermediate FetchHandler layer so future work can compose additional handlers without changing BaseApp. DefaultFetchHandler owns an AstroHandler instance and exposes a standard fetch(request) signature. - New FetchHandler type in core/fetch/types.ts - New DefaultFetchHandler in core/fetch/default-handler.ts - New render-options module in core/app/render-options.ts with the symbol and helpers for attaching ResolvedRenderOptions to a Request - AstroHandler#handle() now takes only a request and reads options from the request via the symbol, keeping FetchHandler signatures clean - BaseApp#render() attaches resolved options to the request and delegates to DefaultFetchHandler#fetch() Pure refactor with no behavioral changes. All tests pass.
advanced-routing
51 minutes ago
refactor: extract AstroHandler from BaseApp#render into core/routing/handler.ts Move the request handling logic (trailing slash redirects, route matching, rendering, error handling, session persistence, reroutable status codes) from BaseApp#render() into a new AstroHandler class. BaseApp#render() now delegates to AstroHandler#handle(). This is a pure code extraction with no behavioral changes -- the same code runs in the same order. The goal is to create a seam for future incremental refactoring of the request pipeline. Also changes #prepareResponse to a non-private method so both BaseApp (renderError) and AstroHandler can call it.
advanced-routing
2 hours ago
chore: align waitUntil typing and release notes
gllmt:dev/fix-cache-provider-waituntil
2 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(core): clean chunk name
#16367
39 minutes ago
872335b
feature/ast-68-fix-vite-build-fail-on-netlify-server-astro16196
CodSpeed Performance Gauge
0%
Advanced Routing (WIP)
#16366
50 minutes ago
24990df
advanced-routing
CodSpeed Performance Gauge
0%
fix(cloudflare): pass waitUntil to cache providers
#16187
2 hours ago
3fb7991
gllmt:dev/fix-cache-provider-waituntil
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs