Skip to content

Commit a4667aa

Browse files
broomvaclaude
andcommitted
fix: add /healthz route to dashboard for Railway healthcheck
The dashboard Next.js app had no healthcheck endpoint, causing Railway deployments to fail after build. Adds a simple GET /healthz route that returns 200 and configures railway.toml to use it explicitly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b53ec3a commit a4667aa

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { NextResponse } from "next/server";
2+
3+
export function GET() {
4+
return NextResponse.json({ status: "ok" }, { status: 200 });
5+
}

dashboard/railway.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ builder = "dockerfile"
33
dockerfilePath = "Dockerfile"
44

55
[deploy]
6+
healthcheckPath = "/healthz"
7+
healthcheckTimeout = 120
68
restartPolicyType = "on_failure"
79
restartPolicyMaxRetries = 5

0 commit comments

Comments
 (0)