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

adding webpack-dev-server configuration for public url #16

Open
veeramarni opened this issue Oct 26, 2018 · 0 comments
Open

adding webpack-dev-server configuration for public url #16

veeramarni opened this issue Oct 26, 2018 · 0 comments

Comments

@veeramarni
Copy link

veeramarni commented Oct 26, 2018

We trying to test by placing public Client URL so that we would able to get the development page on a public URL instead of default localhost.
Based on the following configuration:

https://github.com/webpack/webpack-dev-server/blob/3c1ff11c1ce4ec8d990ca0b9dc1460cd906f986f/examples/cli/public-protocol/webpack.config.js#L12

I have tried by entering these value here

  devServer: {
    host: '0.0.0.0',
    public: 'https://testwebsite.xxxxx.com',
    disableHostCheck: true
  }

...config.devServer,

We able to open the url, but we see the socket still trying to connect localhost.
image

image

Even tried setting the browser url here, but no luck.

target: proxyUrl,

@veeramarni veeramarni changed the title adding webpack-dev-server configuration adding webpack-dev-server configuration for public url Oct 26, 2018
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

1 participant