Respond to /_/healthz as well for frontend

This commit is contained in:
Mustafa Gezen 2022-07-20 15:28:56 +02:00
parent 8e342ff2ba
commit b5d1bf66a5
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1

View File

@ -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;