feat: create deployment scripts

This commit is contained in:
nobody 2025-11-02 13:09:23 -08:00
commit 8d5bce4bfb
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
22 changed files with 2697 additions and 74 deletions

View file

@ -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/)