Patch Changes
-
#18213
1e5523dThanks @astro-factory! - Fixes theglobalThis.processshim being prepended to client-side scripts. The shim is now only added to the server output. -
#18253
78dca00Thanks @astro-factory! - Fixes the@astrojs/cloudflare/honousage example soi18n()is mounted beforepages(). In the old order,i18n()never ran, so locale redirects and fallbacks were skipped. -
#18145
02246c9Thanks @astro-factory! - Fixes dev dependency scan failing when a frontmatter line starts withimport.metaorimport( -
#17677
4f85749Thanks @andreialba! - Fixes remote images without a file extension failing with400 Unsupported format: nullwhen using thecloudflare-bindingimage serviceAstro only adds the
f(format) parameter to/_imageURLs when it can infer a format from the source, and otherwise leaves it off so the image service resolves the format from the source itself. Extensionless remote images, such as GitHub avatars likehttps://avatars.githubusercontent.com/u/1234, take that path. The image transform endpoint now falls back to the source's media type whenfis absent, passing SVG sources through unchanged and encoding everything else as WebP. This also fixes SVG images, which are requested asf=svgand previously failed the same way. -
#18057
8db3024Thanks @asqar! - Fixesastro buildfailing withfetch failed/connect ECONNREFUSED 127.0.0.1:<port>during prerendering on hosts wherelocalhostresolves to IPv6The prerenderer started its Vite preview server with
host: 'localhost'and then built the fetch URL by re-stating that same hostname.localhostwas therefore resolved twice, independently — once bylisten()to pick a bind address and once byfetch()to pick a connect address — with nothing making the two agree. On hosts where those resolutions land on different families, the preview server listens on::1whilefetchdials127.0.0.1, and every prerender request is refused. The URL is now derived from the address actually bound, so bind and connect agree by construction. -
Updated dependencies [
6987261,62b13ba]:- @astrojs/internal-helpers@0.12.0
- @astrojs/underscore-redirects@1.0.4