From b5d1bf66a518ce057009db07e8ac167128ec1d7b Mon Sep 17 00:00:00 2001 From: Mustafa Gezen Date: Wed, 20 Jul 2022 15:28:56 +0200 Subject: [PATCH] Respond to /_/healthz as well for frontend --- common/frontend_server/index.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/frontend_server/index.mjs b/common/frontend_server/index.mjs index 5d708984..d0871cfa 100644 --- a/common/frontend_server/index.mjs +++ b/common/frontend_server/index.mjs @@ -56,6 +56,9 @@ export default async function(opts) { appZ.get('/healthz', ((req, res) => { res.end(); })); + appZ.get('/_/healthz', ((req, res) => { + res.end(); + })); const app = express(); app.use(function(req, res, next) { @@ -66,7 +69,7 @@ export default async function(opts) { next(); } }); - const prod = process.env.NODE_ENV === 'production'; + const prod = process.env.NODE_ENV !== 'production'; const port = prod ? (process.env.PORT || 8086) : opts.port;