Skip to content

fix: Address webpack-dev-server issue with allowedHosts#42

Merged
kenlyon merged 4 commits intomainfrom
fix-allowed-hosts
Sep 22, 2025
Merged

fix: Address webpack-dev-server issue with allowedHosts#42
kenlyon merged 4 commits intomainfrom
fix-allowed-hosts

Conversation

@kenlyon
Copy link
Contributor

@kenlyon kenlyon commented Sep 10, 2025

This change resolves a problem introduced by webpack-dev-server 5.1.2. Our fix is to use a value of "all" for devServer.allowedHosts rather than the default "auto". Their documentation says that "auto" should accept localhost, but this did not seem to be the case. Upgrading webpack and webpack-dev-server seemed to fix it.

Instructions have been added to the README.md file to explain how to override this value.

@kenlyon kenlyon changed the title Fix webpack-dev-server issue with allowedHosts fix: Address webpack-dev-server issue with allowedHosts Sep 10, 2025
Update readme files as well
@kenlyon kenlyon merged commit 6b92951 into main Sep 22, 2025
3 checks passed
@kenlyon kenlyon deleted the fix-allowed-hosts branch September 22, 2025 16:52
@github-actions
Copy link

🎉 This PR is included in version 5.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants