You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e2a5fe
Browse filesBrowse the repository at this point in the historyBrowse files
fix(@schematics/angular): enable opt-in for new @angular/ssr feature
This commit updates several schematics to make the new `@angular/ssr` feature opt-in. Users can opt in by using the `--server-routing` option or by responding with `yes` to the prompt.
(cherry picked from commit 43cd458)
Copy file name to clipboardExpand all lines: packages/schematics/angular/server/files/application-builder/standalone-src/app/app.config.server.ts.template
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
2
-
import { provideServerRendering } from '@angular/platform-server';
3
-
import { provideServerRoutesConfig } from '@angular/ssr';
4
-
import { appConfig } from './app.config';
5
-
import { serverRoutes } from './app.routes.server';
2
+
import { provideServerRendering } from '@angular/platform-server';<% if(serverRouting) { %>
3
+
import { provideServerRoutesConfig } from '@angular/ssr';<% } %>
4
+
import { appConfig } from './app.config';<% if(serverRouting) { %>
5
+
import { serverRoutes } from './app.routes.server';<% } %>
0 commit comments