Skip to content

Another useful case for https in development #8363

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 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docusaurus/docs/using-https-in-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Another case is when connecting with secure websockets (aka `wss` - WebSocket Secure) to a backend. Doing so from a non-HTTPS page may slow down requests considerably, slowing down the whole development process.

Just rephrased this to make it a little clearer!


To do this, set the `HTTPS` environment variable to `true`, then start the dev server as usual with `npm start`:

### Windows (cmd.exe)
Expand Down