Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apps/web/app/api/health/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Dedicated health endpoint that bypasses the auth middleware in [[...route]]/route.ts.
// Without this, every healthcheck call triggers next-auth init() which allocates
// ~14 closure objects per request and causes a gradual memory leak (GitHub issue #2344).
export const runtime = "nodejs";

export function GET() {
return Response.json({ status: "ok", message: "Web app is working" });
}