0

I think my issue is quite similar to this one, but the answer doesn't solve the problem:Webpack devserver client polling URL does not match Webpack devServer.public setting

Vue/cli-service: 4.4.0

Expected URL: https://x.y.net/Base1/sockjs-node/info?t=1749513953510

But actually got: https://x.y.net/sockjs-node/info?t=1749513953510

in vue.config.js, I have below configuration:

publicPath: '/Base1/',
devServer: {
    port: port,
    open: true,
    host: '0.0.0.0',
    public: 'x.y.net/Base1/',
    sockHost: 'x.y.net/Base1',
    disableHostCheck: true,
    overlay: {
        warnings: false,
        errors: true
    },

any idea to make it through?

1 Answer 1

0

I found below combination solved the issue:

publicPath: '/Base1/',
devServer: {
    port: port,
    open: true,
    host: '0.0.0.0',
    public: 'x.y.net/Base1/',
    sockHost: 'x.y.net/Base1',
    sockPath: '/Base1/sockjs-node/',   <== this solved the issue
    disableHostCheck: true,
    overlay: {
        warnings: false,
        errors: true
    },
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.