-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unable to get HMR/ HDR for HTTPS express server - Could not reach Remix dev server at https://localhost:3001 #6402
Comments
Hey @pcattori, Most likely I'm not passing the right settings in remix.config.js? 😅 Once I'm able to get this working, I want to create a similar, new repo, so other folks wanting to use HMR/HDR with their HTTPS remix-express can benefit; I can post it in Remix Repo's Discussion's Show and Tell section so other folks using HTTPS can benefit 🙌 let me know how I can help 🙏 |
Right now SSL / HTTPS is possible, but its tedious and error-prone. Luckily, proper SSL / HTTPS support is coming soon. You can see https://github.com/atsolberg/compiled-remix-1.16.0/pull/1/files for how to patch Remix in the short-term, but expect out-of-the-box support for https to come before v2. |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
1.16.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Example repo of a new Remix Express app using HTTPS: https://github.com/cliffordfajardo/remix-express-https-hmr/tree/main
1. Install dependencies
2. Generate self-signed certs
Since we intend on using HTTPs, we need to create self-signed certificates.
After running the command below, you will be prompted to give answers to the openssl CLI tool that generates the cert
server.key
andserver.cert
file.npm run gen-cert # For details see this small blog post: https://flaviocopes.com/express-https-self-signed-certificate/
3. Start the remix app
## NOTE: you will be prompted to fill in a few values from openssl CLI tool. See: https://flaviocopes.com/express-https-self-signed-certificate/ npm run dev
Expected Behavior
The dev server should be reachable via HTTPS when passing https settings inside of
remix.config.js
See sample repo: https://github.com/cliffordfajardo/remix-express-https-
Actual Behavior
edit* -- Related References
The text was updated successfully, but these errors were encountered: