- Fix builds hanging when an image file is malformed
- Fix base path stripping to respect path-segment boundaries so that a configured base like /docs no longer treats requests like /docs-archive/page as being under the base
- Fix astro build throwing TypeError: Missing parameter for dynamic routes when build.format: 'preserve' and trailingSlash: 'always' are used together
- Fix Astro.site always being undefined when rendering components via the Container API even when site is set in astroConfig
From Astro
Patch Changes
-
#17747
a90ff66Thanks @Princesseuh! - Fixes builds hanging when an image file is malformed -
#17701
05763a0Thanks @matthewp! - Fixes base path stripping to respect path-segment boundaries. With a configuredbasesuch as/docs, a request like/docs-archive/pageis no longer treated as being under the base, so routing andcontext.url.pathnamenow agree on the same pathname. -
#17742
70b449dThanks @Kjubikstronk! - Fixesastro buildthrowingTypeError: Missing parameterfor dynamic routes whenbuild.format: 'preserve'andtrailingSlash: 'always'are used together. Stripping the framework-injected.htmlsuffix dropped the trailing slash that the compiled route pattern requires, so the route no longer matched itself and its params resolved as empty. -
#17703
771b0a9Thanks @astrobot-houston! - FixesAstro.sitealways beingundefinedwhen rendering components via the Container API, even whensiteis set inastroConfig -
Updated dependencies [
05763a0,bc171af]:- @astrojs/internal-helpers@0.10.4
- @astrojs/markdown-satteri@0.3.7
- @astrojs/markdown-remark@7.2.4