Update Railway config and health endpoint

This commit is contained in:
Alexa Amundson
2025-11-21 13:46:44 -06:00
parent 3525a44501
commit 6933df5395
2 changed files with 10 additions and 9 deletions

View File

@@ -1,10 +1,12 @@
{ {
"build": "npm install && npm run build", "$schema": "https://railway.app/railway.schema.json",
"start": "npm start", "build": {
"service": { "builder": "NIXPACKS",
"port": 8080, "buildCommand": "npm install && npm run build",
"healthcheck": { "startCommand": "npm run start"
"path": "/api/health" },
} "deploy": {
"healthcheckPath": "/api/health",
"restartPolicyType": "ON_FAILURE"
} }
} }

View File

@@ -1,7 +1,6 @@
export default function handler(req, res) { export default function handler(req, res) {
res.status(200).json({ res.status(200).json({
ok: true, status: 'ok',
service: 'docs', service: 'docs',
ts: new Date().toISOString(),
}); });
} }