Skip to content

Allow hot reload sockPath to be changed #7597

Closed
@brunomazzardo

Description

@brunomazzardo

Is your proposal related to a problem?

Right now when using CRA behind a proxy, I can redirect all assets and bundle requests to some custom path, but the hot reload socket has a hardcoded path.

Describe the solution you'd like

Allow an extra option to be used, named equal to webpack custom socket pathname, sockPath, to be used by the developer. It needs to use WebpackHotDevClient.js, within react-dev-utils package and the sockPath config needs to be sent to webpack, on webpackDevServer.config.js

Describe alternatives you've considered

Nothing that I tried differently than changing the node_modules files worked

Additional context

I would be willing to implement this if the community feels like this will have so use for others than me.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions