diff --git a/app/app.js b/app/app.js index e8255560..ec338eb8 100644 --- a/app/app.js +++ b/app/app.js @@ -4,6 +4,7 @@ const config = require('config'); const cors = require('cors'); const express = require('express'); +const { name: appName, version: appVersion } = require('./package.json'); const { AuthMode, DEFAULTCORS } = require('./src/components/constants'); const log = require('./src/components/log')(module.filename); const httpLogger = require('./src/components/log').httpLogger; @@ -90,8 +91,8 @@ apiRouter.get('/', (_req, res) => { app: { authMode: state.authMode, gitRev: state.gitRev, - name: process.env.npm_package_name, - nodeVersion: process.version, + name: appName, + nodeVersion: appVersion, privacyMask: config.has('server.privacyMask'), version: process.env.npm_package_version },