Skip to content

Webpack-Dev-Server uses the port of the dev server regardless of where the content was served from #1532

Open
@rschristian

Description

@rschristian

Do you want to request a feature or report a bug?

Bug

What is the current behaviour?

Currently Webpack-Dev-Server will not necessarily use the correct port when making requests to the dev server. It will instead assume the port that the dev server is running upon.

This becomes a problem when used with items like Ngrok. Ngrok offers a way to create HTTP tunnels. You can make localhost:3000 accessible to the world via https://public.url.

The issue is that, while all content can be correctly served and the site usable, Dev Server will attempt to communicate with https://public.url:<dev server port number>. It needs to instead use the port number from the current address.

Probably a simple case of ensuring the plugin doesn't assume a port.

Not yet familiar enough with Prefresh to say whether it's an issue for this repo or its, so leaving this here while I investigate.

What is the expected behaviour?

That the request from the Dev Server goes to the correct address

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions