Skip to content

Commit 42b9b46

Browse files
committed
lightweight webapp health check
1 parent 0b25571 commit 42b9b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/routes/healthcheck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { LoaderFunction } from "@remix-run/node";
33

44
export const loader: LoaderFunction = async ({ request }) => {
55
try {
6-
await prisma.user.count();
6+
await prisma.$queryRaw`SELECT 1`;
77
return new Response("OK");
88
} catch (error: unknown) {
99
console.log("healthcheck ❌", { error });

0 commit comments

Comments
 (0)