Skip to content

SSR Schematics uses by default API being in developer preview stateΒ #28662

@pawelfras

Description

@pawelfras

Command

new

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

Schematics for SSR generates new application with the following API that is in dev preview:

  • AngularNodeAppEngine with writeResponseToNodeResponse and createNodeRequestHandler in server.ts file
  • server routes in app.config.server.ts

Compared to previous functionalities introduced as dev preview, e.g. provideClientHydration, the API mentioned above is not optional but used by default.

Minimal Reproduction

  • generate new app by running npx @angular/[email protected] new my-app (with SSR)
  • verify shape of server.ts

Exception or Error

No response

Your Environment

Angular CLI: 19.0.0-next.11
Node: 22.8.0
Package Manager: yarn 1.22.22
OS: darwin arm64

Angular:
...

Package Version

@angular-devkit/architect 0.1900.0-next.11 (cli-only)
@angular-devkit/core 19.0.0-next.11 (cli-only)
@angular-devkit/schematics 19.0.0-next.11 (cli-only)
@schematics/angular 19.0.0-next.11 (cli-only)

Anything else relevant?

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions