astro@7.2.2
📦 astroView on GitHub →
🐛 8 fixes🔧 5 symbols
Summary
This patch release addresses several bugs related to incremental builds, image optimization, content collections, and the development server. It improves stability and performance by fixing stale component styles, image loading errors, and slow build times.
🐛 Bug Fixes
- Fixes component styles rendered from content entries remaining stale until a second save when an adapter uses Astro's fallback development environment.
- Fixes incremental builds dropping optimized images for cached pages when using a `collectStaticImages` prerenderer (e.g. `@astrojs/cloudflare` with compile-time image optimization).
- Fixes intermittent `ImageNotFound` errors during build on projects with many images by limiting concurrent image file reads to avoid exhausting OS file descriptors (EMFILE) and retrying transient I/O errors with backoff. Non-transient errors are no longer silently swallowed.
- Fixes `prerenderConflictBehavior` not applying to content collection duplicate ID warnings in the `glob()` and `file()` loaders. Setting it to `'error'` now throws during content sync, and `'ignore'` suppresses the warning.
- Fixes the Fonts API breaking `experimental.incrementalBuild` caching by embedding a build-local, randomly-assigned server port in generated code used for the dependency hash.
- Fixes incremental builds becoming prohibitively slow for sites with many pages or content entries that share a large dependency graph.
- Prevents files in directories whose names start with `pages` from being treated as page routes.
- Fixes `astro dev` refusing to start after a Docker container restart when an unrelated process reuses the PID from a persisted lock file. Astro now checks the process command across platforms, so stale lock files are cleaned up and `--force` does not signal the unrelated process.