On October 15, 2026, Matthew Phillips published Astro 7.4. The piece I keep coming back to is astro build --timings, a flag that prints where a production build spends its time. The release also splits image optimization between prerendered pages and on-demand pages, adds a notFound() handler for custom server entrypoints, and warns when a font config asks for something the font cannot serve. The minimum Node.js version goes up. Two features are experiments: parallel prerendering on worker threads, and your own HTML page for static redirects.
I use Astro for content-heavy business sites, as I wrote in why I use Astro for business websites. Build time is how long a content change waits for review, and it is often where a slow request hides in a shared layout.
Read the report before you change the build
When a build gets slow, the cause might be a Vite plugin, syntax highlighting, image processing, or one heavy page. astro build --timings prints a summary of phases, Vite plugins, Markdown and syntax highlighting, page rendering, images, and integrations. The CLI reference lists the flag as added in [email protected], and describes the same report, including image optimization and integration hooks. I would run it before any experimental speed flag. More CPU does not tell you which page is expensive.
A worked example, not a client benchmark
The announcement includes a worked example. These numbers are from that example, a modified copy of Astro’s blog starter. They are not a benchmark I ran.
Astro added a comment component that loads a post’s comments, then loads each commenter’s profile from jsonplaceholder.typicode.com. The profile request cannot start until the comments return, so each affected page waits on two network round trips. Nothing about that looks wrong in the editor. The trimmed report in the post showed:
- 2.61 seconds total, 9 pages, static output
- Generating pages: 2.10 seconds, 80.6 percent of the build
- Component render: 2.08 seconds, against 13 milliseconds in Astro’s page pipeline
- A median page of 297 milliseconds, and a 95th percentile of 571
/aboutslowest, at 571 milliseconds- Blog posts between 296 and 307 milliseconds
/blogat 6 milliseconds, and/rss.xmlat 10
The post rounds that share to 81 percent. The table is the figure I would quote: 2.10 seconds of a 2.61 second build, almost all of it in components on the shared layout. The index and the feed are effectively free.
Astro then loaded comments and profiles together with Promise.all() and passed each profile down. Page generation fell from 2.10 seconds to 1.13 seconds, and each blog post took about half as long. I would copy the method, not the 2.61 second total. On a client site the wait is often a CMS call, a booking feed, or a catalog request in a shared layout. The report is how you prove that before a rewrite, and it also lists the slowest files to bundle. Astro says to read it before reaching for parallel prerendering or incremental builds. Extra cores can hide a slow page. They do not explain it.
Sharp at build time, a CDN when the page is live
Build service, runtime service
Prerendered pages and on-demand pages want different image tools. A build has a full Node.js environment, so a local optimizer such as Sharp fits. An on-demand page often runs where Sharp cannot, including some edge runtimes, so a CDN is the usual fit. Before 7.4 you picked one service for both, or the adapter picked for you.
image.service can now take a build service and a runtime service. This is Astro’s example. The runtime name is a placeholder, not a package I am telling you to install:
import { defineConfig } from 'astro/config';
export default defineConfig({
image: {
service: {
build: { entrypoint: 'astro/assets/services/sharp' },
runtime: { entrypoint: 'my-image-cdn-service' },
},
},
});
The build service optimizes images for prerendered pages, during the build and in development. The runtime service handles on-demand pages and the image endpoint in production. A single service still works as before.
Astro had to change how a build records which images were used. Prerenderers now join Astro’s image pipeline instead of recreating it. One result is that @astrojs/cloudflare processes images on prerendered pages through the same pipeline as the other official adapters. If you upgrade, upgrade @astrojs/cloudflare and @astrojs/markdoc with astro. Those new package versions require astro@^7.4.0.
On a hotel, resort, or catalog site, this is the change I would plan around. The photo that sells the room can be optimized with Sharp while the page is prerendered. A page that must render live, because a rate or a vacancy changes, can hand the same design to a CDN the server is able to run. The setting does not fix an oversized original. I still export images at the size the layout uses. When the public pages feel slow, that belongs with website speed optimization. A build report and field data from visitors answer different questions.
If you publish an integration, the same post says entrypoint is undefined once both services are set, so read runtime instead. Custom prerenderers should pass image metadata through from getStaticPaths() and render(). A plain array or a plain response still works, but Astro deprecates that, and those pages will not get generated images.
Parallel prerendering stays experimental
Static pages were already rendered concurrently, on a single thread. A large site with CPU-heavy pages left the other cores idle. experimental.parallelPrerender moves that work onto Node.js worker threads. The default is every CPU core except one. Each worker uses more memory. If the build runs out of memory, or does not get faster, Astro says to set workers lower. The post shows four workers as an example. Each worker still follows build.concurrency.

The flag does nothing when the adapter prerenders on its own. Among official adapters, Astro says that is only @astrojs/cloudflare, and the build warns when the flag is ignored. It pairs with incremental builds: unchanged pages are skipped, and the pages that remain are spread across cores.
I would try the flag on a branch and compare astro build --timings, watching memory in CI rather than on a laptop. If the report shows a network waterfall in one layout, workers are the wrong tool. Astro’s Promise.all() change is the one that matches that shape.
Checks that are easy to skip
Node.js, 404s, fonts, and redirects
The minimum Node.js version for Astro and its official integrations is now 22.22.0. The post says that is the latest Node.js 22 release StackBlitz supports, following Astro’s support policy, so upgrade Node before Astro on an older 22.x. I check CI as well as laptops. The recommended command is npx @astrojs/upgrade, or install astro@latest yourself.
Three smaller additions are easy to miss. notFound(), from astro/fetch and astro/hono, renders 404.astro when you compose handlers yourself. pages() alone used to return an empty 404. The astro() handler already includes the fix. Font providers can implement getFontProperties() so Astro can warn about a weight, style, subset, or format the file cannot serve. Built-in providers do this. A custom provider may skip it in Astro 7, and Astro 8 will require it. Setup also gains a fetch() that retries transient failures.
Static builds cannot send a Location header, so Astro writes a meta-refresh page for config redirects, prerendered Astro.redirect() calls, and i18n redirects. experimental.redirectPage lets src/pages/3xx.astro replace it, with from, to, status, and delay. The refresh must point at to or the build warns. If your page fails to render, Astro uses the built-in page. On-demand redirects do not change. Integrations can also follow Vite’s resolved output directory. Other fixes are in the 7.4.0 changelog.
What I would do on a client project
- Confirm CI uses Node.js 22.22.0 or newer, then read the 7.4 post against the project’s adapter.
- Upgrade Astro and the official integrations together, including Cloudflare and Markdoc when the project uses them.
- Run
astro build --timingson a production-like build and keep the summary. - If one layout dominates, look for sequential requests and heavy images before any experimental flag.
- Split build and runtime image services only when prerendered and on-demand pages truly need different pipelines, then check the generated files.
- Try parallel prerendering when the report shows CPU-heavy rendering and CI has memory to spare.
Visitors never see that summary. A build that lives in one layout still gets slower each time another page uses it, which is why I keep the report. The timings above are from Matthew Phillips’s post. That standard is also how I approach Astro development. Send what feels slow, the build or the homepage.
Where these claims come from
- Astro 7.4, Matthew Phillips, October 15, 2026
astro buildin the CLI reference, including--timingsadded in[email protected]- Astro 7.4.0 changelog