Added new env vars to config

ref #16
This commit is contained in:
Nicolai Ort 2021-02-08 10:22:29 +01:00
parent a30600943d
commit 3bb322ede5
1 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,10 @@ 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,
eventname: process.env.EVENT_NAME || "Please set the event name",
currency_symbol: process.env.CURRENCY_SYMBOL || "€",
sponsoring_receipt_minimum_amount: process.env.SPONSORING_RECEIPT_MINIMUM_AMOUNT || "10"
}
let errors = 0
if (typeof config.internal_port !== "number") {