mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
This commit revises the app-shell and ssr schematics to incorporate the new Server Rendering API, along with the integration of server-side routes. BREAKING CHANGE: The app-shell schematic is no longer compatible with Webpack-based builders.
14 lines
470 B
Plaintext
14 lines
470 B
Plaintext
import { NgModule } from '@angular/core';
|
|
import { ServerModule } from '@angular/platform-server';
|
|
import { provideServerRoutesConfig } from '@angular/ssr';
|
|
import { AppComponent } from './app.component';
|
|
import { AppModule } from './app.module';
|
|
import { serverRoutes } from './app.routes.server';
|
|
|
|
@NgModule({
|
|
imports: [AppModule, ServerModule],
|
|
providers: [provideServerRoutesConfig(serverRoutes)],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppServerModule {}
|