Astro 7.4, released on October 15, 2026, adds four things: a --timings flag for astro build that reports where build time goes, an experimental parallel prerenderer that renders static pages on several CPU cores, an experimental custom redirect page (src/pages/3xx.astro), and a notFound() step for projects that compose their own request pipeline in src/fetch.ts. It is a minor release, so upgrading from an earlier Astro 7 version should not need code changes.
Key Takeaways
astro build --timingsprints a breakdown of phases, plugins, pages, images and integrations.experimental.parallelPrerenderspreads static page rendering across CPU cores, at the cost of memory.experimental.redirectPagelets you design the HTML page static builds use for redirects.notFound()fromastro/fetch(andastro/hono) renders your 404 page in custom pipelines.- Patch releases followed through 7.4.5 on November 2, 2026; upgrade with
npx @astrojs/upgrade.
Astro 7.4 at a glance
| Feature | Status | Where you turn it on | Who it helps |
|---|---|---|---|
astro build --timings |
Stable | CLI flag | Anyone with a slow build |
| Parallel prerendering | Experimental | experimental.parallelPrerender |
Large static sites |
| Custom redirect page | Experimental | experimental.redirectPage + src/pages/3xx.astro |
Static sites with redirects |
notFound() |
Stable API | astro/fetch, astro/hono |
Server projects with a custom src/fetch.ts |
The two experimental flags follow Astro’s usual rules: their names and behaviour can change in a minor release, and they are off unless you enable them. Our guide to Astro experimental flags explains how to adopt them safely.
Upgrade to Astro 7.4
From the project root:
# Terminal
npx @astrojs/upgrade
The upgrade tool updates astro and the official integrations together, which avoids version mismatches between, for example, astro and @astrojs/mdx. If you prefer to do it by hand:
# Terminal
npm install astro@latest
npx astro --version
Then run npm run build and npm run preview before deploying. At the time of writing the newest patch is 7.4.5 (November 2, 2026), after 7.4.1 to 7.4.4 between October 19 and October 28. Patch releases contain fixes only, so take the latest. If you are coming from Astro 6 or earlier, read our major version upgrade guide first, and see what changed in Astro 7 for the bigger picture.
Build timings with –timings
The headline feature for most people is a built-in profiler for the build. Add the flag:
# Terminal
npx astro build --timings
# through an npm script
npm run build -- --timings
After a successful build, Astro prints a “build timings” report. The header shows the total time, the number of pages and the output mode. Then it lists only the sections that have data:
- Build phases: a tree with phases such as
resolve config,content sync,prerender bundle,ssr bundle,client bundleandgenerate pages, each with a small strip that shows when it was busy. - Vite plugins and Slowest files to bundle: which plugins and modules took the longest to load and transform.
- Markdown plugins and Syntax highlighting: time per remark or rehype plugin, and per highlighted language.
- Slowest pages: per-page render time with the median and p95, and how many pages came from cache.
- Images, Astro compiler and Integrations: shown when each accounts for at least 1% of the build.
The report is wall-clock time with overlapping work counted once, so the numbers add up to real elapsed time. If producing the report itself hits a problem, Astro logs a warning and the build still succeeds.
This answers a question that used to need guesswork: is the build slow because of data fetching, images, Markdown processing or a single integration? We walk through reading each section and fixing what it finds in find slow build steps with astro build –timings.
Experimental parallel prerendering
Until now, Astro rendered static pages in one Node.js process. The build.concurrency option let several pages render at once, but they still shared one thread. Astro 7.4 adds an experimental prerenderer that uses worker threads, so pages render on multiple CPU cores:
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
parallelPrerender: true,
},
});
With true, Astro uses all available CPU cores but one. To limit it, for example because a CI runner has little memory, set the worker count:
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
experimental: {
parallelPrerender: { workers: 4 },
},
});
Things to know before turning it on:
- It trades memory for speed. Each worker is a separate thread with its own memory. If builds start failing with out-of-memory errors, lower
workers. - It multiplies with
build.concurrency. The number of pages in flight is the worker count timesbuild.concurrency, so leaveconcurrencyat its default unless you have measured a reason to change it. - It is ignored when an integration or adapter supplies its own prerenderer. Astro logs a warning that the flag “is not supported” by that prerenderer, and the build continues normally.
- Small sites may not benefit. Starting workers has a cost. A site with a few dozen pages can be slower in parallel.
The honest way to decide is to measure. Build with --timings, note the “generate pages” phase, enable the flag, and build again. The parallel prerendering reference lists the current options. For other ways to speed up builds, see our Astro performance guide.
Experimental custom redirect pages
A static host cannot always send an HTTP Location header for redirects defined in astro.config.mjs. So when you build with output: 'static', Astro writes a small HTML page at the old URL with a <meta http-equiv="refresh"> tag that sends the visitor on. Until 7.4 that page was Astro’s built-in template.
With experimental.redirectPage, you can replace it with your own page:
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
redirects: {
'/old-pricing/': '/pricing/',
'/blog/2024/launch/': '/blog/launch/',
},
experimental: {
redirectPage: true,
},
});
Then create src/pages/3xx.astro. Astro renders it once per redirect and passes four props: from (the old pathname), to (the destination), status (such as 301 or 302) and delay (seconds before refreshing: 2 for a 302, 0 otherwise).
---
// src/pages/3xx.astro
const { from, to, status, delay } = Astro.props;
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="refresh" content={`${delay};url=${to}`} />
<meta name="robots" content="noindex" />
<link rel="canonical" href={to} />
<title>This page has moved</title>
</head>
<body>
<main>
<h1>This page has moved</h1>
<p><code>{from}</code> now lives at <a href={to}>{to}</a>.</p>
{status === 302 && <p>Taking you there in a moment.</p>}
</main>
</body>
</html>
The meta refresh tag is required, because in a static build that tag is the redirect. If your page leaves it out, Astro warns during the build that “visitors will not be redirected”. You can wrap the page in your site’s layout instead, as long as the layout lets you add that tag to its <head>.
A branded redirect page matters most during a site migration, when people may briefly see it for many old URLs. Where your host supports real server redirects (a _redirects file on Netlify and Cloudflare Pages, or vercel.json), those are still better for search engines, because they send a true 301. Our Astro redirects tip compares the options, and the redirect page reference has the full contract.
notFound() for custom entrypoints
Astro 7 lets server projects take over the request pipeline with a src/fetch.ts file that default-exports a { fetch } handler. Inside it you compose Astro’s steps from astro/fetch (or the Hono middleware versions from astro/hono) with your own code. That is useful for health checks, custom headers or mounting another router in front of Astro.
What was missing was a clean way to render your 404 page when no route matched. In 7.4, notFound() fills that gap. It renders the project’s 404 page (including a prerendered src/pages/404.astro) when nothing matched, and returns undefined otherwise, so the pipeline continues. The API docs say to call it before middleware() and pages() in a pipeline that does not run inside Astro’s own App.render:
// src/fetch.ts
import { FetchState, trailingSlash, notFound, middleware, pages } from 'astro/fetch';
export default {
async fetch(request: Request) {
const url = new URL(request.url);
if (url.pathname === '/healthz') {
return new Response('ok');
}
const state = new FetchState(request);
const slashRedirect = trailingSlash(state);
if (slashRedirect) return slashRedirect;
const missing = await notFound(state);
if (missing) return missing;
return middleware(state, (s) => pages(s));
},
};
If you do not need a custom pipeline, you do not need this file. Without src/fetch.ts, Astro uses its built-in handler, which already renders the 404 page. With Hono, notFound() from astro/hono is the middleware equivalent. The advanced routing guide covers the fetch file in depth, and our article on the Astro request lifecycle explains what each step does.
Should you upgrade?
Yes, for any project already on Astro 7. It is a minor release, so stable APIs follow semantic versioning, and --timings alone is worth having the next time a build gets slow. Enable the experimental flags only when they solve a problem you have: parallel prerendering for a large static site whose “generate pages” phase dominates the build, the redirect page for a migration with many redirects.
All Komal themes are Astro 7 projects, so the same upgrade command applies to them; the Astro themes catalog lists them by category, and the installation docs cover the Node.js version to use.
FAQ
When was Astro 7.4 released?
Astro 7.4.0 was published on October 15, 2026. Patch releases 7.4.1 to 7.4.5 followed between October 19 and November 2, 2026.
How do I upgrade to Astro 7.4?
Run npx @astrojs/upgrade in your project, which updates astro and the official integrations together. Then build and preview the site before deploying.
Is Astro 7.4 a breaking release?
No. It is a minor release within Astro 7. New behaviour is either opt-in (the --timings flag, the notFound() function) or behind experimental flags that are off by default.
What does experimental.parallelPrerender do in Astro?
It renders static pages on multiple CPU cores using worker threads during astro build. By default it uses all cores but one; set workers to use fewer if memory is tight.
What is src/pages/3xx.astro in Astro?
With experimental.redirectPage enabled in Astro 7.4, src/pages/3xx.astro is the page Astro renders for every redirect in a static build. It receives from, to, status and delay as props and must include a meta refresh tag.