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

2 months 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

2 months ago

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

2 Replies

Railway
BOT

2 months ago

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

Status changed to Open Railway • 2 months ago


2 months 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

2 months ago

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


Status changed to Solved mayori • 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...