mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
refactor(server): remaining nest domains read env via app-config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user