From 3489c8ac3aa0a5f9a12b7a31d74e91ea5d04159d Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 4 Feb 2023 23:24:05 +0100 Subject: [PATCH] fix: loading config --- packages/backend/src/config/load.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/config/load.ts b/packages/backend/src/config/load.ts index 133a6f4ff..a6431162d 100644 --- a/packages/backend/src/config/load.ts +++ b/packages/backend/src/config/load.ts @@ -26,7 +26,7 @@ const path = process.env.NODE_ENV === 'test' export default function load(): Config { const meta = JSON.parse(fs.readFileSync(`${_dirname}/../../../../built/meta.json`, 'utf-8')); const clientManifest = JSON.parse(fs.readFileSync(`${_dirname}/../../../../built/_client_dist_/manifest.json`, 'utf-8')); - const config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source; + let config = yaml.load(fs.readFileSync(path, 'utf-8')) as Source; if (config.id && config.id !== 'aid') throw new Error('Unsupported ID algorithm. Only "aid" is supported.');