Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for devServer.client.webSocketURL #1650

Closed
syncjuncture opened this issue Feb 1, 2022 · 1 comment
Closed

Support for devServer.client.webSocketURL #1650

syncjuncture opened this issue Feb 1, 2022 · 1 comment

Comments

@syncjuncture
Copy link

export default (config, env, helpers) => {
  if (!env.isProd) {
    config.devServer.client = {
      webSocketURL: "ws://localhost:PORT/ws",
    };
  }
};

Reference: https://webpack.js.org/configuration/dev-server/

@rschristian
Copy link
Member

You're referencing the wrong version of the docs. That's v4, while the latest release of preact-cli is on v3.

That being said, we actually just landed support for v4 in #1646, though it has not yet been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants