Added version to config

This commit is contained in:
Nicolai Ort 2021-01-30 17:45:13 +01:00
parent 814b564752
commit cff70110fd

View File

@ -4,7 +4,7 @@ configDotenv();
export const config = {
internal_port: parseInt(process.env.APP_PORT) || 4010,
development: process.env.NODE_ENV === "production",
version: process.env.VERSION || require('../package.json').version,
version: process.env.VERSION || require('../package.json').version
}
let errors = 0
if (typeof config.internal_port !== "number") {