Skip to content

Commit 3ec5ff2

Browse files
fix: Add /api/health endpoint to minimal server for Railway health checks
1 parent f89cd64 commit 3ec5ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/servers/railway/minimal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const PORT = process.env.PORT || 3000;
1010
const server = http.createServer((req, res) => {
1111
console.log(`${new Date().toISOString()} ${req.method} ${req.url}`);
1212

13-
if (req.url === '/health') {
13+
if (req.url === '/health' || req.url === '/api/health') {
1414
res.writeHead(200, { 'Content-Type': 'application/json' });
1515
res.end(
1616
JSON.stringify({

0 commit comments

Comments
 (0)