From 5cbd47c1e51ce46f7b835ff3d796811a95e42b8b Mon Sep 17 00:00:00 2001 From: jaime echegaray zipper Date: Wed, 22 Jan 2020 18:01:02 -0300 Subject: [PATCH] Another useful case for https in development It is relevant to note that https in development is important for wss connection speeds. I spent a couple days debugging and this was the solution for slow wss connections. --- docusaurus/docs/using-https-in-development.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docusaurus/docs/using-https-in-development.md b/docusaurus/docs/using-https-in-development.md index 3541e356b8e..4648b0e246d 100644 --- a/docusaurus/docs/using-https-in-development.md +++ b/docusaurus/docs/using-https-in-development.md @@ -8,6 +8,8 @@ sidebar_label: HTTPS in Development You may require the dev server to serve pages over HTTPS. One particular case where this could be useful is when using [the "proxy" feature](proxying-api-requests-in-development.md) to proxy requests to an API server when that API server is itself serving HTTPS. +Another case is when connecting with secure websockets `wss` to a backend. Doing so from a non HTTPS page may slow down considerably the requests and consequently the development process. + To do this, set the `HTTPS` environment variable to `true`, then start the dev server as usual with `npm start`: ### Windows (cmd.exe)