feat: prepare supporter self-hosting

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-10-22 09:36:53 +02:00
parent f958230a66
commit 9790ba8937
19 changed files with 2647 additions and 115 deletions

View File

@@ -10,7 +10,7 @@ export async function healthcheck(
) {
try {
const redisRes = await getRedisCache().ping();
const dbRes = await db.project.findFirst();
const dbRes = await db.$executeRaw`SELECT 1`;
const chRes = await chQuery('SELECT 1');
const status = redisRes && dbRes && chRes ? 200 : 503;