We deployed a Next JS project with Payload CMS but getting 502 Bad Gateway after deployment
treyblr
HOBBYOP

a month ago

There are no errors in logs. These are the only logs:

Starting Container

node .next/standalone/server.js

▲ Next.js 16.2.9

✓ Ready in 0ms

The Generate Domain in settings is set to listen to 8080 port, but still it is not accessible.

Solved$10 Bounty

Pinned Solution

a month ago

Make sure your app is listening to 0.0.0.0 instead of localhost or 127.0.0.1

2 Replies

Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 29 days ago


a month ago

Make sure your app is listening to 0.0.0.0 instead of localhost or 127.0.0.1


mayori

Make sure your app is listening to `0.0.0.0` instead of `localhost` or `127.0.0.1`

treyblr
HOBBYOP

a month ago

Thanks, I needed to add custom start command so it listened on all interfaces.


Status changed to Solved mayori 29 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...