https mode not working due to missing WDS option #3301
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
good first issue
If you are just getting started with Docusaurus, this issue should be a good place to begin.
help wanted
Asking for outside help and/or contributions to this particular issue or PR.
🐛 Bug Report
According to the docs (actually, not sure if this is in the docs) setting
process.env.HTTPS=true
should start webpack dev server in https mode. This does not work because a missing option in the webpack dev server config.Here is the webpack dev server docs showing the
https
option: https://webpack.js.org/configuration/dev-server/#devserverhttpsHere is the Docusaurus config which does not use this option: https://github.com/facebook/docusaurus/blob/master/packages/docusaurus/src/commands/start.ts#L131-L132
Adding this line I was able to get it working as expected
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
(Write your steps here:)
HTTPS=true yarn start
https://localhost:3000/
but the page does not load.http
in「wds」: Project is running at http://localhost:3000/
Expected behavior
Https opens AND site is running on https.
Actual Behavior
Https opens BUT site is running on http
Your Environment
Reproducible Demo
The issue is simple enough I don't believe it warrants a demo. The steps to reproduce are minimal and include spinning up a new project and running a yarn command. If the team still believes a demo is needed or can't repro the issue I can provide one.
The text was updated successfully, but these errors were encountered: