web: fix `webpack-dev-server` configuration
Created by: valerybugakov
Context
Additions to https://github.com/sourcegraph/sourcegraph/pull/24369 to fix sg run web
, which failed with an invalid configuration error:
Changes
- The migration guide was used to add missing fields to the configuration.
- To avoid fixing non-existent problems, this PR also upgrades
webpack-dev-server
to the stable v4 release.
Notes
Removes unneeded (and removed)
firewall
option. (This was renamed toallowedHosts
, but the default is no firewall.)
For some reason running sg run enterprise-web-standalone
resulted in invalid host header
without allowedHosts
configuration.
Part of https://github.com/sourcegraph/sourcegraph/issues/22832.