Railway Public Domain not working for Next.js app running via nx
Project ID:
c50bf9da-0e9b-4d41-b229-8bd6503385a7
I have a Next.js app running from within a nx monorepo. It runs fine locally and the server logs look fine (see below). I've tried passing an explicit host to it of 0.0.0.0
, I've tried forcing the port with a PORT
env var. For some reason no matter what when I try to access the generated domain I get Application failed to respond
. Any ideas what to try?
Logs:
Config:
3 Replies
Project ID:
c50bf9da-0e9b-4d41-b229-8bd6503385a7
the logs say it's listening on localhost, but it needs to listen on 0.0.0.0
https://docs.railway.app/guides/fixing-common-errors
i tried passing that and nx showed it was passing the param, I assumed that console log was just wrong, but i'm starting to thing there's a problem with using @nrwl/next:server, gonna try using nx for the build and using next start to actually run it