Skip to content

Websocket do not work with app.baseURL in dev. #6

@tmg0

Description

@tmg0

Description

When I add the app.baseURL config in nuxt.config.ts and run the dev script local, the page would be infinity refresh, and if I remove this config It works well.

It seems like websocket and baseURL config caused a HMR error ( I am not quite sure about that )

I forked a repo of this project and reproduced that problem.

Logs

client.ts:77 WebSocket connection to 'ws://localhost:3000/_prefix/_nuxt/' failed: Invalid frame header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions