R
Railway10mo ago
DrMike

Cannot connect to NextJS app

Hello, I have deployed a NextJS app built with Dockerfile, but I cannot connect to it. The app is set to run on port 3001: next dev —port 3001 I have added the PORT service variable with value 3001. I have also added a proxy that forwards to port 3001. Is there anything else that I am missing? Any help would be appreciated 🙏🏼
No description
Solution:
you are starting next in development mode
Jump to solution
11 Replies
Percy
Percy10mo ago
Project ID: 62ca0b8c-511e-4010-badc-08aea9e6ba05
DrMike
DrMikeOP10mo ago
Project ID: 62ca0b8c-511e-4010-badc-08aea9e6ba05
Brody
Brody10mo ago
I have also added a proxy that forwards to port 3001.
please explain this
DrMike
DrMikeOP10mo ago
In Settings > Networking, I have added a TCP Proxy to port 3001
Brody
Brody10mo ago
next runs on http, you need to generate a domain
DrMike
DrMikeOP10mo ago
Ok, I have generated a domain, but I receive “Application failed to respond” when trying to connect
No description
Brody
Brody10mo ago
Solution
Brody
Brody10mo ago
you are starting next in development mode
DrMike
DrMikeOP10mo ago
Thank you @Brody my app is now up and running!
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server