From b3fc8ba850443315914fba0920ee6e5b01c287a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Tue, 4 Feb 2025 11:09:45 +0100 Subject: [PATCH] fix(api): disable healthcheck --- apps/api/src/controllers/healthcheck.controller.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/api/src/controllers/healthcheck.controller.ts b/apps/api/src/controllers/healthcheck.controller.ts index 26dd4b72..4544fda4 100644 --- a/apps/api/src/controllers/healthcheck.controller.ts +++ b/apps/api/src/controllers/healthcheck.controller.ts @@ -21,6 +21,11 @@ export async function healthcheck( request: FastifyRequest, reply: FastifyReply, ) { + if (process.env.DISABLE_HEALTHCHECK) { + return reply.status(200).send({ + ok: true, + }); + } const redisRes = await withTimings(getRedisCache().ping()); const dbRes = await withTimings(db.project.findFirst()); const queueRes = await withTimings(eventsQueue.getCompleted());