From 193d4e4d62d4f51b4661aa8325cb61f82540fda1 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 10 Dec 2024 23:18:42 -0800 Subject: [PATCH] Enable locating config.json at IPP_CONFIG --- app/src/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/functions.ts b/app/src/functions.ts index 8e55c64..3ffeb1a 100644 --- a/app/src/functions.ts +++ b/app/src/functions.ts @@ -3,7 +3,7 @@ import { Response } from 'express-serve-static-core' let config = {} try { - const configJson = require('../config.json') + const configJson = require(process.env.IPP_CONFIG || '../config.json') if (typeof configJson === 'object') config = configJson } catch (e) { }