We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf91ff commit 037a0e0Copy full SHA for 037a0e0
src/node/routes/index.ts
@@ -66,7 +66,11 @@ export const register = async (
66
app.use(bodyParser.urlencoded({ extended: true }))
67
68
const common: express.RequestHandler = (req, _, next) => {
69
- heart.beat()
+ // /healthz|/healthz/ needs to be excluded otherwise health checks will make
70
+ // it look like code-server is always in use.
71
+ if (!/^\/healthz\/?$/.test(req.url)) {
72
+ heart.beat()
73
+ }
74
75
// Add common variables routes can use.
76
req.args = args
0 commit comments