load configUtil in exports fucntion to delay file exists check so CI can run
This commit is contained in:
parent
a716b45950
commit
b9e9596fbb
|
@ -12,7 +12,7 @@ const libsignal = require('libsignal');
|
|||
const runMiddleware = require('run-middleware');
|
||||
const IV_LENGTH = 16;
|
||||
|
||||
const configUtil = require('../../server/lib/lib.config.js')
|
||||
let configUtil
|
||||
|
||||
const FILE_SERVER_PRIV_KEY_FILE = 'proxy.key'
|
||||
const FILE_SERVER_PUB_KEY_FILE = 'proxy.pub'
|
||||
|
@ -386,6 +386,9 @@ module.exports = (app, prefix) => {
|
|||
// set cache based on dispatcher object
|
||||
cache = app.dispatcher.cache;
|
||||
|
||||
// we need config-file-path set up correctly to include this
|
||||
configUtil = require('../../server/lib/lib.config.js')
|
||||
|
||||
// enable runMiddleware
|
||||
runMiddleware(app); // set it up for fixups
|
||||
fixUpMiddleware(app); // do the fixups
|
||||
|
|
Loading…
Reference in New Issue