Enable locating config.json at IPP_CONFIG

This commit is contained in:
Tim Van Baak
2024-12-10 23:18:42 -08:00
parent e4d66a5ccc
commit 193d4e4d62
+1 -1
View File
@@ -3,7 +3,7 @@ import { Response } from 'express-serve-static-core'
let config = {} let config = {}
try { try {
const configJson = require('../config.json') const configJson = require(process.env.IPP_CONFIG || '../config.json')
if (typeof configJson === 'object') config = configJson if (typeof configJson === 'object') config = configJson
} catch (e) { } } catch (e) { }