Astro astro@7.2.4

astro@7.2.4
Fixed 4
  • 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 a90ff66 Thanks @Princesseuh! - Fixes builds hanging when an image file is malformed

  • #17701 05763a0 Thanks @matthewp! - Fixes base path stripping to respect path-segment boundaries. With a configured base such as /docs, a request like /docs-archive/page is no longer treated as being under the base, so routing and context.url.pathname now agree on the same pathname.

  • #17742 70b449d Thanks @Kjubikstronk! - Fixes astro build throwing TypeError: Missing parameter for dynamic routes when build.format: 'preserve' and trailingSlash: 'always' are used together. Stripping the framework-injected .html suffix dropped the trailing slash that the compiled route pattern requires, so the route no longer matched itself and its params resolved as empty.

  • #17703 771b0a9 Thanks @astrobot-houston! - Fixes Astro.site always being undefined when rendering components via the Container API, even when site is set in astroConfig

  • Updated dependencies [05763a0, bc171af]:

    • @astrojs/internal-helpers@0.10.4
    • @astrojs/markdown-satteri@0.3.7
    • @astrojs/markdown-remark@7.2.4
View original

Upgraded? How did it go?

Discussion