Files
Hermes-ui/packages/server/src
sir1st 1373b4746b feat(version-check): add HERMES_WEB_UI_DISABLE_UPDATE_CHECK env var (#1105)
Adds an opt-in environment variable to suppress the npm-registry update
check. When set, three things change:

1. checkLatestVersion() returns immediately (no outbound fetch)
2. startVersionCheck() does not arm the 30-minute interval
3. /api/health returns webui_latest='' and webui_update_available=false

Use case: hermes-web-ui is bundled inside a packaged distribution like
a desktop app where the user cannot `npm install -g hermes-web-ui@latest`
to apply an upgrade. The 'update available' prompt is then misleading
(the user would have to wait for the wrapper app to ship a new release),
and the recurring HTTPS call to the npm registry is unnecessary noise.

Set HERMES_WEB_UI_DISABLE_UPDATE_CHECK=true | 1 | on | yes to disable.
The default behavior is unchanged.

Discussed in #1091 — proposed by @EKKOLearnAI.
2026-05-28 22:36:07 +08:00
..
2026-05-28 19:47:24 +08:00
2026-05-25 12:49:01 +08:00
2026-05-24 10:11:03 +08:00