Skip to content

Commit

Permalink
Merge pull request digital-sustainability#141 from digital-sustainabi…
Browse files Browse the repository at this point in the history
…lity/prerender

added scully and some SEO
  • Loading branch information
veracahrim authored Aug 24, 2021
2 parents 37cab7f + 8affa62 commit b2f7f0d
Show file tree
Hide file tree
Showing 24 changed files with 5,218 additions and 18,930 deletions.
2 changes: 2 additions & 0 deletions frontend/.scully/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
identifier: k9s2odheb8k9p4e9
allowErrorCollect: false
52 changes: 50 additions & 2 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/oss-github-benchmark",
"outputPath": "dist/oss-github-benchmark/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -102,7 +102,8 @@
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
"e2e/tsconfig.json",
"tsconfig.server.json"
],
"exclude": ["**/node_modules/**"]
}
Expand All @@ -122,6 +123,53 @@
"deploy": {
"builder": "angular-cli-ghpages:deploy",
"options": {}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/oss-github-benchmark/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
},
"configurations": {
"production": {
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"sourceMap": false,
"optimization": true
}
}
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "oss-github-benchmark:build",
"serverTarget": "oss-github-benchmark:server"
},
"configurations": {
"production": {
"browserTarget": "oss-github-benchmark:build:production",
"serverTarget": "oss-github-benchmark:server:production"
}
}
},
"prerender": {
"builder": "@nguniversal/builders:prerender",
"options": {
"browserTarget": "oss-github-benchmark:build:production",
"serverTarget": "oss-github-benchmark:server:production",
"routes": [
"/"
]
},
"configurations": {
"production": {}
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/bs-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"server": {
"baseDir": "./dist/static"
}
}
Loading

0 comments on commit b2f7f0d

Please sign in to comment.