You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a very specific need that forces us to use our own generated SSL certificates in development.
I can't see any obvious ways to provide certificates with react-dev-utils/webpackHotDevClient, but the default webpack-dev-server server has a https option that does exactly this.
Is there an easy way to achieve it?
How common is this problem? Is it something that is commonly required?
The text was updated successfully, but these errors were encountered:
Yes. You can set HTTPS=true environment variable and it will exactly enable the https option in webpack dev server which you have mentioned above. After setting it, npm start will open your site in https. However, your browser might not accept the self-signed certificate and give you an error. In that case, you have to manually trust it as a valid certificate. As an example, if you use Chrome in OSX you can follow this guide to trust your self-signed SSL certificate.
We have a very specific need that forces us to use our own generated SSL certificates in development.
I can't see any obvious ways to provide certificates with
react-dev-utils/webpackHotDevClient
, but the defaultwebpack-dev-server
server has ahttps
option that does exactly this.Is there an easy way to achieve it?
How common is this problem? Is it something that is commonly required?
The text was updated successfully, but these errors were encountered: