If you run Angular with server-side rendering and already maintain an Express or NestJS backend, you have probably lived with two processes and two sets of routes. AnalogJS 3.0 removes that split: the Angular meta-framework can now render pages inside the Node server you already have. The release also breaks the Vite setup into separate plugins and adds type-safe routing and streaming SSR, both still flagged as experimental. Version 3.0.0 shipped on November 24 and is now the latest tag on npm.
For readers who have not met it, Analog plays roughly the role for Angular that Nuxt plays for Vue. It builds on Vite for the toolchain and Nitro as the server engine, and it gives you file-based routing, API routes, Markdown pages and a mix of SSR (rendering per request on the server) and SSG (pre-rendering static pages at build time). The project says it now sees more than two million npm downloads a month.
What AnalogJS 3.0 actually changes
The first thing you will notice is vite.config.ts. Until now, the analog() plugin wired up the Angular and Nitro plugins for you, and every option went into one large object. Version 3 splits this into three Vite plugins: analog() for routing, pre-rendering and content, angular() from @analogjs/vite-plugin-angular for compilation, and nitro() from @analogjs/vite-plugin-nitro for the server and deployment. Each plugin only accepts the options it owns.
That sounds cosmetic, but it pays off in two ways. You can see at a glance where a setting takes effect, and you can swap the compiler without losing Analog’s features. To try Angular’s experimental NGP, the new hybrid preprocessor built with Rust and OXC, you set angular({ compilation: 'ngp' }). According to the announcement you can also plug in tsrs, a Rust-based type checker for TypeScript 7.
Nitro v2 stays the default. If you want Nitro v3 now, install the nitro package and import nitro() from nitro/vite; Analog detects which version you use. Nuxt is moving the same way and opened Nitro v3 for testing in Nuxt 4.7, so both frameworks now share the same server foundation and the same open issues.
Running Angular SSR inside your own server
The most useful part of the release is that you can drop Nitro entirely. In the Vite config, analog({ server: { entry: 'src/server/main.ts' } }) points at your own server file, and nitro() goes away. Fetch-based frameworks such as Hono get createAnalogRequestHandler(), which returns null for requests it does not own. Node frameworks such as Express, Fastify and NestJS get createAnalogHandler(), which hands everything else to next(). The custom server guide shows an Express entry like this:
// src/server/main.ts
import { createAnalogHandler } from '@analogjs/router/server';
import express from 'express';
import { fileURLToPath } from 'node:url';
import { toFetchHandler } from 'srvx/node';
const app = express();
app.get('/api/health', (req, res) => res.json({ ok: true }));
if (!import.meta.env.DEV) {
const clientDir = fileURLToPath(new URL('../client', import.meta.url));
app.use(express.static(clientDir, { index: false }));
}
app.use(createAnalogHandler());
if (!import.meta.env.DEV) {
app.listen(process.env['PORT'] ?? 3000);
}
export default { fetch: toFetchHandler((req, res) => app(req, res)) };
Analog takes care of server functions under /_analog/fn/:id, page endpoints under /api/_analog/pages/** and server-rendering every GET request outside /api/. Order matters here. Your own routes go before the Analog handler, and so do static files, or the server will happily render HTML for asset URLs. Keep index: false as well, otherwise / returns the client’s empty index.html instead of a rendered page. Any custom server also needs the h3 package, and Node frameworks need srvx on top.
NestJS is where this gets genuinely handy. Server functions, page load functions and SSR run in the same process as your controllers and can inject your Nest services directly. There is one build catch: NestJS relies on experimentalDecorators and emitDecoratorMetadata. Vite 8 emits the decorator metadata, but on Vite 6 and 7 esbuild cannot, so you have to compile the server directory with SWC.
What you give up without Nitro
The docs are upfront about the trade-offs. Pre-rendering, static site generation and the deployment presets all come from Nitro, so they are gone with a custom server. File-based API routes in src/server/routes are no longer served and need to move into your server’s own routing. Multilingual sites lose locale workers: every locale renders in one JavaScript context, and overlapping requests in different languages can produce mixed-language pages. Setting i18n.workers: true with a custom server fails the build.
One detail deserves attention from a security angle. When SSR or page endpoints call your server’s own API, for example an HttpClient request to /api/..., Node frameworks need a fetch function that forwards those calls to the server. The example in the docs deliberately reads the target from an environment variable such as SERVER_ORIGIN and never from the incoming request. Keep it that way. Building the target from the Host header gives an attacker a forwarding hop they can point somewhere else. Without that fetch, the calls simply return 404, which is easy to mistake for a bug on the first run. The recent middleware bypasses in Fastify and Livewire showed how quickly small routing details like these turn into real holes.
Streaming SSR and CDN caching do not mix
The experimental streaming mode sends the document head right away and then delivers each @defer block with a hydrate trigger as soon as the server has finished it. You switch it on with experimental: { streaming: true } and replace render with renderStream in main.server.ts. It needs Angular 21 or later and builds on incremental hydration, Angular’s way of activating server-rendered sections in the browser piece by piece. On Angular 22 that is already on by default through provideClientHydration(). Search engine crawlers automatically get a buffered, complete page.
For production, one line in the docs matters most: streamed responses are sent with Cache-Control: no-store, no-transform and without compression, so no proxy caches or buffers half an HTML document. If you cache SSR pages on a CDN today, streamed routes drop out of that cache. Status code and headers also leave with the first chunk, so a route that only decides during rendering whether to return a 404 or a 301 should stay buffered. With Nitro you use the route rule streaming: false; with a custom server you set a header before the Analog handler runs:
app.get('/report', (req, res, next) => {
res.setHeader('x-analog-no-streaming', 'true');
next();
});
Type-safe routes and validated API handlers
With experimental: { typedRouting: true }, Analog generates a route table from your pages. The LinkTo directive and the injectNavigate and injectParams functions then check paths and parameters at compile time. Combined with strictTemplates, a typo in a link becomes a build error rather than a 404 in production. API routes get defineApiRoute, which validates the request body with any Standard Schema library such as Zod, Valibot or ArkType. Invalid requests receive a 422 response and never reach your handler.
Upgrading: Angular 20 is the floor
AnalogJS 3.0 supports Angular 20, 21 and 22. Projects on Angular 17 to 19 should stay on Analog 2.x. The create-analog templates expect Node ^22.18.0 or ^24.3.0 and TypeScript 6.0. Most of the work is done by ng update @analogjs/platform@latest or nx migrate @analogjs/platform@latest, including the split of the Vite config.
The migration guide lists a handful of things to check by hand, and four of them are likely to bite. @analogjs/trpc has been removed without a replacement, so apps using it need to move to API routes or maintain their own tRPC integration. The FormAction directive now turns enhanceForm on by default; forms that depend on the old behaviour need [enhanceForm]="false". Legacy page folders under app/routes are no longer picked up. And if you render Markdown, you now have to configure the highlighter explicitly in the analog() plugin.
The project leans hard on coding agents. @analogjs/platform ships its own AGENTS.md, new projects get AGENTS.md and CLAUDE.md files that point to that guidance inside node_modules, and the migration guide includes a ready-made prompt for running the upgrade. That is a sensible design, because the instructions stay in step with the installed version. Our comparison of AGENTS.md vs. CLAUDE.md covers how to keep such rule files tidy. We would still run the migration prompt on a separate branch and review the result against the checklist section by section.
Our take
AnalogJS 3.0 makes the strongest case yet for running Angular outside the Angular CLI. The custom server solves a real problem: teams with an established NestJS or Express backend no longer need a second server just for SSR. If you depend on pre-rendering, SSG or ready-made deployment presets, stay on Nitro; for you, the main gain is a clearer config.
For existing projects we would go in this order. Get Angular to version 20 or later first, then run ng update and work through the four manual items. Introduce the custom server only where a Node backend already exists, and pin the internal fetch forwarding to a fixed address from day one. Streaming and typed routing are still experimental. They are worth a feature branch, but for pages behind a CDN cache we would keep streaming switched off for now.
Sources: AnalogJS 3.0 announcement, custom server documentation and migration guide on analogjs.org.




