feat: add better auth sqlite runtime and server-side session flow

This commit is contained in:
Poyraz
2026-07-10 22:07:37 +03:00
parent 3504a02229
commit 57aab2932e
41 changed files with 4907 additions and 143 deletions
+16
View File
@@ -0,0 +1,16 @@
import { checkReadiness } from "@/server/db/health";
export const runtime = "nodejs";
export function GET() {
const readiness = checkReadiness();
return Response.json(
{
status: readiness.ok ? "ok" : "unhealthy",
checks: readiness.checks,
timestamp: new Date().toISOString(),
},
{ status: readiness.ok ? 200 : 503 },
);
}