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

3.12.0 Unable to set Vite HMR protocol #435

Closed
cmd430 opened this issue Jun 24, 2024 · 0 comments · Fixed by #436
Closed

3.12.0 Unable to set Vite HMR protocol #435

cmd430 opened this issue Jun 24, 2024 · 0 comments · Fixed by #436

Comments

@cmd430
Copy link
Contributor

cmd430 commented Jun 24, 2024

Currently if you use a reverse proxy with https the Vite HMR websocket connection fails to connect as it always tries to use ws protocol and cannot be overridden with the following config

export default defineNuxtConfig({
  ...
  vite: {
    server: {
      hmr: { protocol: 'wss' }
    }
  }
})

Multiple people (myself included) having the same issues here nuxt/nuxt#27558

I have a possible solution I commented in that issue found here nuxt/nuxt#27558 (comment)

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

Successfully merging a pull request may close this issue.

1 participant