Skip to content

Commit 482fb6b

Browse files
committed
add ssr to ssr project
1 parent 663db24 commit 482fb6b

13 files changed

+458
-133
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ npm install
2222
```sh
2323
ng serve
2424
```
25+
You can run the projects on [Stackblitz](https://stackblitz.com/@vicmans/collections/angular-intermedio)
2526

2627
## Lesson Links
2728

ssr/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/angularssrlesson?file=README.md)
44

5+
The starter code in the branch `ssr-initial`
6+
57
To start with Angular SSR run the following command
68

79
```sh

ssr/angular.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@
3333
"styles": [
3434
"src/styles.css"
3535
],
36-
"scripts": []
36+
"scripts": [],
37+
"server": "src/main.server.ts",
38+
"prerender": {
39+
"routesFile": "routes.txt"
40+
},
41+
"ssr": {
42+
"entry": "server.ts"
43+
}
3744
},
3845
"configurations": {
3946
"production": {

0 commit comments

Comments
 (0)