Closed
Description
What problem does this feature solve?
I am using Nginx in development to terminate SSL and proxy to the dev-server (https://nginx/ => http://devserver:8080/) with devServer.public
set appropriately, so I can use HTTPS/HTTP2 during development.
This had been working fine until beta16 commit:
which makes sockjs URL absolute with the wrong host/port, now in this case: https://10.0.1.6:8080/sockjs-node
. Previously it was simply /sockjs-node
.
I would like an option to either specify sockjsUrl
explicitly OR an option to omit the protocol/host/port and just use the pathname /sockjs-node
.
What does the proposed API look like?
module.exports = {
devServer: {
disableHostCheck: true,
public: 'local.mox.cc',
sockjsRelative: true, // OR
sockjsUrl: '/sockjs-node'
}
}