Fixed the version getting process

ref #91
This commit is contained in:
2021-01-12 17:39:40 +01:00
parent 16b594ebdd
commit 295a1524d8
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ export const config = {
development: process.env.NODE_ENV === "production",
jwt_secret: process.env.JWT_SECRET || "secretjwtsecret",
phone_validation_countrycode: process.env.PHONE_COUNTRYCODE || "ZZ",
postalcode_validation_countrycode: getPostalCodeLocale()
postalcode_validation_countrycode: getPostalCodeLocale(),
version: process.env.VERSION || require('../package.json').version
}
let errors = 0
if (typeof config.internal_port !== "number") {