Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ jobs:
ref: ${{ steps.tag.outputs.tag }}
fetch-depth: 0 # full history needed for generated release notes

# Building the release with the oldest supported Node.js version (22)
# keeps the bundle's esbuild target maximally conservative, so the same
# single artifact stays compatible with Node.js 22, 24, and 26 hosts.
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
node-version: 22
cache: npm

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ This section is a complete walkthrough for running the viewer as a background se
### Prerequisites

- A Linux host with **systemd** (the default on Debian, Ubuntu, Raspberry Pi OS, Fedora, etc.).
- **Node.js 20 or newer** installed on the target host. Check with `node --version`. Because the server is bundled into a single `dist/server/index.cjs` file, this is the only runtime dependency — you do **not** need to run `npm install` on the target host.
- **Node.js 22 or newer** installed on the target host. Check with `node --version`. Because the server is bundled into a single `dist/server/index.cjs` file, this is the only runtime dependency — you do **not** need to run `npm install` on the target host.
- The `openhab` user. On a standard openHAB installation it already exists and owns the log files. If it does not exist, create a dedicated service user:

```bash
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ await build({
bundle: true,
platform: 'node',
format: 'cjs',
target: 'node20',
target: 'node22',
sourcemap: true,
logLevel: 'info'
});
Expand Down