Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #12860
Closed
Open
Issue created Nov 21, 2022 by Administrator@rootContributor

Support additional WDS_SOCKET_* options

Created by: ruckc

Is your proposal related to a problem?

I am always frustrated with the limited pass through of WDS_SOCKET_ variables. Ideally I wish there was a WDS_SOCKET_URL={url} and potentially WDS_SOCKET_PROTOCOL.

Describe the solution you'd like

Expand the logic in websocketDevServer.config.js to support alternative options from webpack-dev-server, such as webSocketURL: ${WDS_SOCKET_URL} and the protocol options in the object notation.

Describe alternatives you've considered

Ejecting is the only viable solution currently given the hardcoded nature of the current WDS_SOCKET variable support.

Additional context

This would be useful for me when running the CRA/WDS behind a local reverse proxy in a development mode. I can't use the WDS's proxy values due to the applications requiring mutual-TLS authentication, hence the reverse proxy.

Assignee
Assign to
Time tracking