R
Railway7mo 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
Percy7mo ago
Project ID: 62ca0b8c-511e-4010-badc-08aea9e6ba05
DrMike
DrMike7mo ago
Project ID: 62ca0b8c-511e-4010-badc-08aea9e6ba05
Brody
Brody7mo ago
I have also added a proxy that forwards to port 3001.
please explain this
DrMike
DrMike7mo ago
In Settings > Networking, I have added a TCP Proxy to port 3001
Brody
Brody7mo ago
next runs on http, you need to generate a domain
DrMike
DrMike7mo ago
Ok, I have generated a domain, but I receive “Application failed to respond” when trying to connect
No description
Brody
Brody7mo ago
Solution
Brody
Brody7mo ago
you are starting next in development mode
DrMike
DrMike7mo ago
Thank you @Brody my app is now up and running!
Brody
Brody7mo ago
no problem!
Want results from more Discord servers?
Add your server