Now loading barcode format from env with overwrite via query param

ref #13
This commit is contained in:
2021-02-09 17:28:04 +01:00
parent 4b79b29ee6
commit 9a7c1d64fd
4 changed files with 8 additions and 6 deletions

View File

@@ -4,7 +4,8 @@ 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,
codeformat: process.env.CODEFORMAT || "qrcode"
}
let errors = 0
if (typeof config.internal_port !== "number") {