This commit is contained in:
xCyanGrizzly
2026-02-18 14:26:36 +01:00
commit 3a5726e82b
167 changed files with 104081 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import { prisma } from "@/lib/prisma";
import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
export async function GET() {
try {
await prisma.$queryRaw`SELECT 1`;
return NextResponse.json(
{
status: "healthy",
timestamp: new Date().toISOString(),
database: "connected",
},
{ status: 200 }
);
} catch {
return NextResponse.json(
{
status: "unhealthy",
timestamp: new Date().toISOString(),
database: "disconnected",
},
{ status: 503 }
);
}
}