8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6062c3 commit 2a3608dCopy full SHA for 2a3608d
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