Skip to content
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

fix(v2): add https support in webpack devserver #3311

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

arcvats
Copy link
Contributor

@arcvats arcvats commented Aug 19, 2020

Motivation

Add https option in the dev server config, protocol is defined in the config file which can be http or https. Rather than directly checking from process.env we can check from the protocol.
After this change, one can start a dev server over https.

Fixes #3301

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Running HTTPS=true yarn start will start the server and load the website on https://localhost:3000

Screenshot 2020-08-19 at 7 42 18 PM

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@arcvats arcvats requested a review from yangshun as a code owner August 19, 2020 23:45
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 19, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 89a7062

https://deploy-preview-3311--docusaurus-2.netlify.app

@slorber
Copy link
Collaborator

slorber commented Aug 20, 2020

thanks

@mattmillerart do you think it solves the problem you had with https? That looks good to me.

For the CRA certs maybe you can open a dedicated issue?

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 28, 2020
@slorber slorber changed the title chore(v2): add https support in webpack devserver fix(v2): add https support in webpack devserver Aug 28, 2020
@slorber slorber merged commit a999928 into facebook:master Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

https mode not working due to missing WDS option
4 participants