You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment when using the router option when using httpProxy.createServer(), each of the entries in that object is required to have a hostname in order to be mapped correctly. It would be awesome if you could map solely based on the path.
If you were to deploy the same code on multiple machines which have slightly different host names, there's not really a way to do this "cleanly" since it's not possible to map based on path alone. Is there any reason this is not allowed at the moment?
I'll see if I can patch it and perhaps send a pull request. In the meantime it would be great to know if there's a specific reason this is currently now allowed.
Thanks
The text was updated successfully, but these errors were encountered:
At the moment when using the
router
option when using httpProxy.createServer(), each of the entries in that object is required to have a hostname in order to be mapped correctly. It would be awesome if you could map solely based on the path.If you were to deploy the same code on multiple machines which have slightly different host names, there's not really a way to do this "cleanly" since it's not possible to map based on path alone. Is there any reason this is not allowed at the moment?
I'll see if I can patch it and perhaps send a pull request. In the meantime it would be great to know if there's a specific reason this is currently now allowed.
Thanks
The text was updated successfully, but these errors were encountered: