A
argbe.tech - news1min read
Astro 5.17: an SSR upgrade checklist for cookies, loaders, and images
Astro 5.17 expands configuration across cookies, content loaders, and image optimization, plus a new project-wide default for dev toolbar placement. The changes target common production and embedded-app edge cases without requiring custom workarounds.
Astro 5.17 adds new configuration hooks for SSR apps, content loading, and image processing.
Key facts
Astro.cookies.set()now supportspartitioned: truefor embedded/iframe scenarios; partitioned cookies requiresecure: trueand are commonly paired withsameSite: 'none'.- The dev toolbar supports a project-wide default placement via
devToolbar.placement, while still allowing per-developer overrides from the toolbar UI. - The
file()content loader’sparser()can beasync, enabling awaited enrichment steps while building a collection’s final data. - The
glob()loader addsretainBody: false, letting projects skip storing each entry’s raw body alongside rendered output to reduce the deployed content data store size. astro:assetsimage transforms support abackgroundcolor when converting from transparent formats (like PNG) to formats without alpha (like JPEG), using standard CSS color syntax.