-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.0.0-next.9
Description
OOTB Angular 19.0.0-next.13 app triggers prerendering when prerender
property is set to false
in angular.json
as well as when parameter --prerender=false
is passed to the build
command.
Prerendering is triggered even after removing app.server.routes.ts
which by default sets renderMode: RenderMode.Prerender
for routes.
Minimal Reproduction
- create new Angular 19.0.0-next.13 app with SSR/SSG
- in OOTB app, inside
angular.json
, add"prerender": false
toarchitecture
->build
->options
object - run
npm run build
- in console, verify if any static route is prerendered
- in
dist/<your_app>
location, verify ifprerendered-routes.json
is generated - discard changes from the
angular.json
file - run
npm run build -- --prerender=false
- follow previous steps to verify that perrendering was triggered
Exception or Error
No response
Your Environment
Angular CLI: 19.0.0-next.13
Node: 22.8.0
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.0.0-next.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
@angular-devkit/architect 0.1900.0-next.13
@angular-devkit/build-angular 19.0.0-next.13
@angular-devkit/core 19.0.0-next.13
@angular-devkit/schematics 19.0.0-next.13
@angular/cli 19.0.0-next.13
@angular/ssr 19.0.0-next.13
@schematics/angular 19.0.0-next.13
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0
Anything else relevant?
No response