- Fix a build error when a Markdown content collection entry loaded with `glob({ deferRender: true })` has a `layout` frontmatter property by ignoring `layout` for content collection entries as documented
- Fix `astro add cloudflare` failing to install dependencies with pnpm v11+ by approving the `workerd` build script and show the package manager's error output when `astro add` fails to install dependencies
- Fix AVIF images being served as `image/heif` instead of `image/avif` in the dev server
- Fix the `cache()` handler from `astro/hono` and `astro/fetch` throwing a `TypeError` when a cache provider is configured by registering the cache provider before rendering so `Astro.cache` is available to downstream handlers
- Fix `security.checkOrigin` rejecting cross-origin requests with non-form content types such as `application/json` to only apply the check to unsafe requests with no `content-type` header or one of `application/x-www-form-urlencoded`, `multipart/form-data`, or `text/plain`
From Astro
Patch Changes
-
#18266
cba76ccThanks @astro-factory! - Fixes a build error when a Markdown content collection entry loaded withglob({ deferRender: true })has alayoutfrontmatter property.layoutis now ignored for content collection entries, as documented. -
#18287
38f6793Thanks @astro-factory! - Fixesastro add cloudflarefailing to install dependencies with pnpm v11+ by approving theworkerdbuild script, and shows the package manager's error output whenastro addfails to install dependencies -
#18222
fcf6ed6Thanks @mingjunlu! - Fixes an issue where AVIF images were served asimage/heifinstead ofimage/avifin the dev server. -
#18240
de4df06Thanks @astro-factory! - Fixes thecache()handler fromastro/honoandastro/fetchthrowing aTypeErrorwhen a cache provider is configured. It now registers the cache provider before rendering, soAstro.cacheis available to downstream handlers likepages(). -
#18268
547b572Thanks @astro-factory! - Fixessecurity.checkOriginrejecting cross-origin requests with non-form content types such asapplication/json. As documented, the check only applies to unsafe requests that have nocontent-typeheader or one ofapplication/x-www-form-urlencoded,multipart/form-data, ortext/plain.