Skip to content

Commit 4ec8abd

Browse files
committed
refactor: switch output mode to static and enable client hydration in application configuration
1 parent 272b047 commit 4ec8abd

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

angular.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@
6767
"projects/demo-ngx-theme-stack/src/styles.css"
6868
],
6969
"server": "projects/demo-ngx-theme-stack/src/main.server.ts",
70-
"outputMode": "server",
70+
"outputMode": "static",
7171
"security": {
7272
"allowedHosts": []
73-
},
74-
"ssr": {
75-
"entry": "projects/demo-ngx-theme-stack/src/server.ts"
7673
}
7774
},
7875
"configurations": {

projects/demo-ngx-theme-stack/src/app/app.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
22
import { provideRouter, withViewTransitions } from '@angular/router';
33

4+
import { provideClientHydration } from '@angular/platform-browser';
45
import { provideThemeStack } from 'ngx-theme-stack';
56
import { routes } from './app.routes';
67

@@ -13,6 +14,7 @@ export const appConfig: ApplicationConfig = {
1314
skipInitialTransition: true,
1415
}),
1516
),
17+
provideClientHydration(),
1618
provideThemeStack({
1719
themes: ['sunset'],
1820
}),

0 commit comments

Comments
 (0)