diff --git a/keyserver/src/utils/import-json.js b/keyserver/src/utils/import-json.js --- a/keyserver/src/utils/import-json.js +++ b/keyserver/src/utils/import-json.js @@ -14,6 +14,14 @@ } async function getJSON(path: string): Promise { + const fromEnv = process.env[`COMM_JSONCONFIG_${path}`]; + if (fromEnv) { + try { + return JSON.parse(fromEnv); + } catch (e) { + console.log(`failed to parse JSON from env for ${path}`, e); + } + } try { // $FlowFixMe const importedJSON = await import(`../../${path}`);