Skip to content

Commit 5a6beda

Browse files
committed
End to end SSR implemented
1 parent 65cbb91 commit 5a6beda

13 files changed

+567
-65
lines changed

angular.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build": {
1212
"builder": "@angular-devkit/build-angular:browser",
1313
"options": {
14-
"outputPath": "dist",
14+
"outputPath": "dist/browser",
1515
"index": "src/index.html",
1616
"main": "src/main.ts",
1717
"tsConfig": "src/tsconfig.app.json",
@@ -48,6 +48,24 @@
4848
}
4949
}
5050
},
51+
"server": {
52+
"builder": "@angular-devkit/build-angular:server",
53+
"options": {
54+
"outputPath": "dist/server",
55+
"main": "src/main.server.ts",
56+
"tsConfig": "src/tsconfig.server.json"
57+
},
58+
"configurations": {
59+
"production": {
60+
"fileReplacements": [
61+
{
62+
"replace": "src/environments/environment.ts",
63+
"with": "src/environments/environment.prod.ts"
64+
}
65+
]
66+
}
67+
}
68+
},
5169
"serve": {
5270
"builder": "@angular-devkit/build-angular:dev-server",
5371
"options": {

0 commit comments

Comments
 (0)