a month ago
I've read the similar threads and already tried SKIP_ENV_VALIDATION="true" as an env variable — still failing the healthcheck. This is a Next.js project. Local builds work fine, and the deploy ok with my custom message: [boot] runtime=nodejs port=8080 hostname=***
- Local: http://3d0dfa15d290:8080
- Network: http://3d0dfa15d290:8080
✓ Ready in 0ms
[boot] runtime=nodejs port=8080 hostname=***
4 Replies
Status changed to Open Railway • about 1 month ago
a month ago
try to add this to package.json -> "start": "next start -H 0.0.0.0 -p $PORT"
euphoriuhhh
try to add this to package.json -> "start": "next start -H 0.0.0.0 -p $PORT"
a month ago
I didn't work. Things I've done:
make sure /api/health - return 200.
a month ago
Have you followed the Healthcheck docs? https://docs.railway.com/deployments/healthchecks#configure-the-healthcheck-port
You can try adding a PORT env var and setting it to 8080.
a month ago
this fixed it in railway.toml, change the startCommand="node .next/standalone/server.js" to
startCommand = "npm start"
Status changed to Open brody • about 1 month ago
Status changed to Solved lancevxx • about 1 month ago