fix(api): disable healthcheck

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-02-04 11:09:45 +01:00
parent be83b484bc
commit b3fc8ba850

View File

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