-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Labels
Description
- Operating System: macOS 11.0.1
- Node Version: v14.15.1
- NPM Version: 6.14.8
- webpack Version: 5.8.0
- webpack-dev-server Version: 4.0.0-beta.0
- Browser: Chrome last
- This is a bug
- This is a modification request
Question
How should I replace the host
option in the new version?
Perhaps I did not understand this from the changelog.
webpack-dev-server v3:
devServer: {
host: 'some.site.loc',
<...>
}
with webpack-dev-server v4 I try:
devServer: {
client: {
host: 'some.site.loc',
}
<...>
}
Result from console:
<i> [webpack-dev-server] Project is running at https://127.0.0.1:9090/
When I try open https://some.site.loc:9090
I get response Invalid Host header
.
If I do not change the option (I leave it as it was in the previous version), then by default https://127.0.0.1:9090
will still open, but https:/some.site.loc:9090
also works. In this case, I would like the console to write the correct address and the correct address to open in the browser.
akphi, andreychev and nimaebra