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

Connecting to the client at a remote URL #227

Closed
rafpaf opened this issue Jul 26, 2021 · 2 comments
Closed

Connecting to the client at a remote URL #227

rafpaf opened this issue Jul 26, 2021 · 2 comments

Comments

@rafpaf
Copy link

rafpaf commented Jul 26, 2021

I'm developing remotely, so I need webpack-plugin-serve to connect to a URL like ws://dev.example.com/wps. The plugin is still attempting to connect at ws://localhost:9000/wps, even though I have set the client option to { protocol: "ws", address: "147.147.147.147:9000" }.

In my webpack.config.js, the options are as follows. (These aren't my actual IP address and host, of course.)

      new Serve({
        port: 9000,
        client: { protocol: "ws", address: "147.147.147.147:9000" },
        host: "dev.assets.example.com",
        compress: true,
        hmr: true,
        static: "./dist",
      }),
@shellscape
Copy link
Owner

Sounds like you're reporting a bug, in which case you should open a bug issue or submit a PR to fix.

@rafpaf
Copy link
Author

rafpaf commented Jul 26, 2021

I've opened a bug report here: #228.

@rafpaf rafpaf closed this as completed Jul 26, 2021
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