Skip to content

[@web/dev-server]Live-reload, HMR not working when app is running on a base URL like <base href="/my-app/"> #1489

Open
@acory

Description

@acory

In __web-dev-server_web-socket.js file there is this code:

const { protocol, host } = new URL(import.meta.url);
const webSocketUrl = `ws${protocol === 'https:' ? 's' : ''}://${host}/wds`;

It would be nice if I can specify in the web-dev-server.config a baseUrl and have the code above rewritten to:

const webSocketUrl = `ws${protocol === 'https:' ? 's' : ''}://${host}/**${app-base-href}**/wds`

I need this, so traefik can route the request to the appropriate docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions