diff --git a/README.md b/README.md index cff41ed..1be7f86 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,5 @@ It is deployed at [mmbradley.ca](https://mmbradley.ca). ## Deployment The site is build with React and local development can be done with React devtools, but the site is ultimately static. -`render.sh` calls `vite build` to process the assets and prepare the site for rendering. +`yarn build` calls `render.sh` which uses `vite build` to process the assets and prepare the site for rendering. It then has `node` render the site, and outputs everything needed to display the site to the `dist/prod` directory. diff --git a/package.json b/package.json index 291d8f3..f2d8b33 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "./render.bash", + "build": "bash render.bash", "build:targets": "yarn build:client && yarn build:server", "build:client": "tsc -b && vite build --outDir dist/client", "build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx", diff --git a/render.bash b/render.bash old mode 100755 new mode 100644