feat: create deployment scripts
This commit is contained in:
parent
78297efe5c
commit
8d5bce4bfb
22 changed files with 2697 additions and 74 deletions
|
|
@ -63,3 +63,23 @@ The production build will generate client and server modules by running both cli
|
|||
```shell
|
||||
npm run build # or `yarn build`
|
||||
```
|
||||
|
||||
## Static Site Generator (Node.js)
|
||||
|
||||
Be sure to configure your server to serve very long cache headers for the `build/**/*.js` files.
|
||||
|
||||
Typically you'd set the `Cache-Control` header for those files to `public, max-age=31536000, immutable`.
|
||||
|
||||
```shell
|
||||
npm run build.server
|
||||
```
|
||||
|
||||
## Express Server
|
||||
|
||||
This app has a minimal [Express server](https://expressjs.com/) implementation. After running a full build, you can preview the build using the command:
|
||||
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
Then visit [http://localhost:8080/](http://localhost:8080/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue