add static generation (WIP)

This commit is contained in:
dennis.ludwig
2021-06-10 16:50:51 +02:00
parent 001e26a2cd
commit 02c81de12e
3 changed files with 25 additions and 7 deletions

View File

@@ -39,8 +39,24 @@ Serve
cd build
python3 -m http.server 8080
```
Then open here: http://localhost:8080
## Run a prepared static version
In most cases you have the techradar available at `/techradar`, and for reasons want all correct pages to be accessable.
Until this setup improves, you can use the following way to generate the correct techradar:
```
yarn generateJson
PUBLIC_URL=techradar/ yarn buildRadar
yarn createStaticFiles
cp -r build techradar
```
(This is rather workaroundish for now, but does the job.)
## Usage
For a new Technology Radar release, create a folder of the release date
@@ -83,9 +99,9 @@ merged with the old ones and a new history entry is created for that item.
## Open points
* static build necessary?
* measure file sizes necessary?
* dotenv necessary?
* check browsers necessary?
* copy public folder necessary?
* specific webpack configurations necessary?
* static build necessary? -> for SEO necessary
* dotenv necessary? -> Could be necessary for other companies
* measure file sizes necessary? -> no
* check browsers necessary? -> no
* copy public folder necessary? -> no
* specific webpack configurations necessary? -> no