diff --git a/lib/client/index.js b/lib/client/index.js index 1b5c618ef..4b4e18832 100644 --- a/lib/client/index.js +++ b/lib/client/index.js @@ -16,7 +16,7 @@ module.exports = ({ port = null, config = {}, filters = {} }) => { const { app, server } = require('../webserver')(config, port); // IMPORTANT: defined before relay (`app.all('/*', ...`) - app.get('/healthcheck', (req, res, next) => { + app.get(config.brokerHealthcheckPath || '/healthcheck', (req, res) => { return res.status(200).json({ ok: true }); });