Skip to content

Commit

Permalink
add ssg for card pages
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jun 19, 2024
1 parent 718501f commit 2dd2560
Show file tree
Hide file tree
Showing 20 changed files with 2,030 additions and 550 deletions.
1 change: 1 addition & 0 deletions .github/workflows/netlify.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Deploy to Netlify

on:
workflow_dispatch:
push:
branches:
- master
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ src/assets/expansions.json
*-debug.log
.runtimeconfig.json
.nx

routes.txt
cards.json
65 changes: 64 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "www",
"outputPath": "dist/app/browser",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": ["zone.js"],
Expand Down Expand Up @@ -167,6 +167,69 @@
"devServerTarget": "app:serve:ci"
}
}
},
"server": {
"builder": "@angular-devkit/build-angular:server",
"options": {
"outputPath": "dist/app/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json",
"buildOptimizer": false,
"optimization": false,
"sourceMap": true,
"extractLicenses": false,
"vendorChunk": true
},
"configurations": {
"production": {
"buildOptimizer": true,
"outputHashing": "media",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"sourceMap": false,
"extractLicenses": true,
"vendorChunk": false
},
"ci": {}
},
"defaultConfiguration": "production"
},
"serve-ssr": {
"builder": "@angular-devkit/build-angular:ssr-dev-server",
"configurations": {
"development": {
"browserTarget": "app:build:development",
"serverTarget": "app:server:development"
},
"production": {
"browserTarget": "app:build:production",
"serverTarget": "app:server:production"
}
},
"defaultConfiguration": "development"
},
"prerender": {
"builder": "@angular-devkit/build-angular:prerender",
"options": {
"discoverRoutes": false,
"routesFile": "routes.txt"
},
"configurations": {
"production": {
"browserTarget": "app:build:production",
"serverTarget": "app:server:production"
},
"development": {
"browserTarget": "app:build:development",
"serverTarget": "app:server:development"
}
},
"defaultConfiguration": "production"
}
}
}
Expand Down
Loading

0 comments on commit 2dd2560

Please sign in to comment.