refactor(server): remaining nest domains read env via app-config

This commit is contained in:
jubnl
2026-07-25 15:29:13 +02:00
parent 9e87e09d03
commit d13758221e
15 changed files with 49 additions and 29 deletions
@@ -1,4 +1,5 @@
import semver from 'semver';
import { readEnv } from '../../../app-config';
/**
* Host-version compatibility for plugins (#plugins). A manifest declares the TREK
@@ -11,7 +12,7 @@ import semver from 'semver';
/** The running TREK version (same source as the rest of the app). */
export function hostVersion(): string {
return process.env.APP_VERSION || (require('../../../../package.json') as { version: string }).version;
return readEnv().app.appVersion || (require('../../../../package.json') as { version: string }).version;
}
let warnedUnparseable = false;