Support the dev server run behind proxy server like Nginx.
Created by: hurelhuyag
Is your proposal related to a problem?
Yes. I need to run the dev server behind Nginx. This way. I can simulate a production-like setup with a dev environment.
Describe the solution you'd like
Currently, When I open the app on the browser. The app tries to connect wss://my_local_domain:3000/ws
when I run it behind the Nginx proxy server. I didn't provide port number 3000. It looks like somewhere hardcoded. The solution is to use a relative path to connect to the dev server. Then connect URL should be like this: wss://my_local_domain/ws
because my nginx host URL is https://my_local_domain
Describe alternatives you've considered
I tried this). It should work. But not exactly fit what I'm looking for. For example, it doesn't support cookies. It provides me unknown proxy server. Additional unknown factor.
Additional context
I also create StackOverflow question