withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix: strip .html suffix in getParams for non-page routes when pattern doesn't match In dev mode, the route matcher (dev.ts) strips .html and /index.html suffixes for all route types when retrying unmatched requests. However, getParams() only stripped .html for page routes, causing a mismatch: the endpoint route would be matched (via the dev.ts fallback) but FetchState would call getParams with the original .html-suffixed pathname, failing to extract params and throwing 'Missing parameter'. This fix adds a fallback in getParams for non-page routes: if the route pattern doesn't match the original pathname, try stripping .html or /index.html before giving up. This keeps the existing behavior for endpoints that genuinely capture .html in their params (the pattern matches the original path) while preventing the crash for .html-probing requests like those from netlify dev. Fixes #17297
triagebot/fix-17297
13 hours ago
feat: chuncked tests
feat/data-store-backend-abstraction
18 hours ago
fix(config-alias): skip data URIs in CSS url() alias resolution Data URIs like url('data:image/svg+xml;base64,...') were incorrectly matched by the baseUrl alias regex and passed to fs.statSync(), which throws ENAMETOOLONG when the base64 string exceeds the OS filename length limit (255 bytes). Add an early return in replaceAliases() to skip data: URIs since they are inline content, not file paths to resolve. Fixes #17293
triagebot/fix-17293
1 day ago
chore: add changesets
chinna250801:fix/security-patches
1 day ago
Apply suggestions from code review Co-authored-by: Armand Philippot <git@armand.philippot.eu>
feat/csp-elem-attr
1 day ago
fix: prevent spurious full-reload on first browser visit after dev server start (#17283)\n\nThe `invalidateDataStore` function in the content virtual mod plugin was\nsending a `full-reload` signal to the client HMR channel during the\n`buildStart` hook. Since no browser had loaded content yet at startup,\nthis queued reload was delivered to the first connecting client, causing\nan immediate page reload.\n\nAdd a `notifyClient` option to `invalidateDataStore` and pass\n`{ notifyClient: false }` from `buildStart` to skip the client reload\nduring initial startup while preserving the module invalidation needed\nto avoid the data store race condition (PR #12938)."
triagebot/fix-17283
2 days ago
Render the custom 404 page when a middleware rewrite dead-ends in an empty 404
fix-middleware-rewrite-404
2 days ago
Fix route generator throwing on a dynamic param value of 0 (#17247) getParameter() used truthy checks (!params[x], || '') instead of checking for undefined, so a param legitimately set to 0 (e.g. a zero-indexed category id) either threw TypeError: Missing parameter or got silently dropped from the path. Reachable through the public paginate() API: paginate(posts, { params: { categoryId: 0 } }) would crash. Added tests covering both the spread and dynamic-segment branches.
main
2 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Fix dev server crash when .html-suffixed requests hit dynamic endpoint routes
#17299
17 hours ago
6223705
triagebot/fix-17297
CodSpeed Performance Gauge
0%
feat: chunk data store
#17296
18 hours ago
72b6904
feat/data-store-backend-abstraction
CodSpeed Performance Gauge
0%
Fix ENAMETOOLONG crash when CSS data URIs are processed by tsconfig alias plugin
#17294
1 day ago
ee57c57
triagebot/fix-17293
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs