Add healthcheck endpoint outside of remix if remix routes are disabled

This commit is contained in:
Eric Allam
2024-03-18 17:19:56 +00:00
parent 67cac97b26
commit ebec14093d
+5
View File
@@ -76,6 +76,11 @@ if (process.env.HTTP_SERVER_DISABLED !== "true") {
mode: MODE,
})
);
} else {
// we need to do the health check here at /healthcheck
app.get("/healthcheck", (req, res) => {
res.status(200).send("OK");
});
}