Skip to content

fix: add protocol checks in getPayload so that HMR works with --experimental-https flag #12093

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

paulpopus
Copy link
Contributor

Fixes an issue where running dev with --experimental-https flag would break HMR because the websocket protocol is different. HTTPS will only support wss instead of ws.

Also adds support for local dev with https in the monorepo via self-signed certificates.

Adds two new commands:

  • dev:generate-certs to generate the required self signed certificates for us to be able to spin up a custom server as well, since we rely on node:https
  • dev:https to run the same dev command but with --experimental-https

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

Successfully merging this pull request may close these issues.

1 participant