mirror of
https://github.com/angular/angular-cli.git
synced 2025-04-19 16:18:03 +08:00
This commit introduces `provideServerRendering` as the primary function for configuring server-side rendering, replacing `provideServerRouting`. `provideServerRendering` now includes the functionality of `provideServerRouting` through the use of the `withRoutes` feature. This change consolidates server-side rendering configuration into a single, more flexible function, aligning with the evolution of Angular SSR. **Before:** ```ts import { provideServerRouting } from '@angular/ssr'; import { serverRoutes } from './app.routes'; provideServerRouting(serverRoutes); ``` **After:** ```ts import { provideServerRendering, withRoutes } from '@angular/ssr'; import { serverRoutes } from './app.routes'; provideServerRendering(withRoutes(serverRoutes)); ```