Skip to content

Commit c75c518

Browse files
authored
[ENG-9792] Angular Universal (#803)
- Ticket: [ENG-9792] - Feature flag: n/a ## Summary of Changes 1. Added SSR.
1 parent 2e5db28 commit c75c518

File tree

105 files changed

+3764
-1158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3764
-1158
lines changed

angular.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@
6262
"node_modules/ngx-markdown-editor/assets/highlight.js/highlight.min.js",
6363
"node_modules/ngx-markdown-editor/assets/marked.min.js",
6464
"src/assets/js/ace/snippetsMarkdown.js"
65-
]
65+
],
66+
"server": "src/main.server.ts",
67+
"outputMode": "server",
68+
"ssr": {
69+
"entry": "src/server.ts"
70+
}
6671
},
6772
"configurations": {
6873
"production": {
@@ -146,29 +151,27 @@
146151
},
147152
"serve": {
148153
"builder": "@angular-devkit/build-angular:dev-server",
154+
"options": {
155+
"hmr": false
156+
},
149157
"configurations": {
150158
"production": {
151159
"buildTarget": "osf:build:production"
152160
},
153161
"development": {
154-
"buildTarget": "osf:build:development",
155-
"hmr": true
162+
"buildTarget": "osf:build:development"
156163
},
157164
"docker": {
158-
"buildTarget": "osf:build:docker",
159-
"hmr": true
165+
"buildTarget": "osf:build:docker"
160166
},
161167
"staging": {
162-
"buildTarget": "osf:build:staging",
163-
"hmr": true
168+
"buildTarget": "osf:build:staging"
164169
},
165170
"test": {
166-
"buildTarget": "osf:build:test",
167-
"hmr": false
171+
"buildTarget": "osf:build:test"
168172
},
169173
"test-osf": {
170-
"buildTarget": "osf:build:test-osf",
171-
"hmr": false
174+
"buildTarget": "osf:build:test-osf"
172175
}
173176
},
174177
"defaultConfiguration": "development"

0 commit comments

Comments
 (0)