We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0b15e commit dd91e10Copy full SHA for dd91e10
railway.toml
@@ -3,7 +3,7 @@ builder = "nixpacks"
3
4
[deploy]
5
startCommand = "bash start.sh"
6
-healthcheckPath = "/"
+healthcheckPath = "/api/health"
7
healthcheckTimeout = 300
8
restartPolicyType = "on_failure"
9
restartPolicyMaxRetries = 10
src/app/api/health/route.ts
@@ -0,0 +1,7 @@
1
+import { NextResponse } from "next/server";
2
+
+export async function GET() {
+ return NextResponse.json({ status: "ok" }, { status: 200 });
+}
0 commit comments