diff --git a/deploy/install.sh b/deploy/install.sh index 7225727..c784a6d 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -43,7 +43,9 @@ fi echo "==> Building" cd "$INSTALL_DIR" -npm ci +# Build tooling (TypeScript/Vite) lives in devDependencies, so install those even when +# NODE_ENV=production is set in the environment. +npm ci --include=dev npm run build echo "==> Writing systemd unit /etc/systemd/system/$SERVICE.service"