phone countrycode validation in env vars

ref #18 #16
This commit is contained in:
2020-12-06 11:21:10 +01:00
parent 99d8a0360f
commit fcfc10f7d1
4 changed files with 8 additions and 4 deletions

View File

@@ -3,5 +3,6 @@ dotenvSafe.config();
export const config = {
internal_port: process.env.APP_PORT || 4010,
development: process.env.NODE_ENV === "production",
jwt_secret: process.env.JWT_SECRET || "secretjwtsecret"
jwt_secret: process.env.JWT_SECRET || "secretjwtsecret",
phone_validation_countrycode: process.env.PHONE_COUNTRYCODE || "ZZ"
}