Skip to content

Commit 8b7e9d4

Browse files
Swizecrandycoulman
authored andcommitted
Gently nudge users towards https by default (facebook#974)
gh-pages supports https. It's important for prominent help files to encourage best practices.
1 parent 5c036d1 commit 8b7e9d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/template/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -881,15 +881,15 @@ This will let Create React App correctly infer the root path to use in the gener
881881
Open your `package.json` and add a `homepage` field:
882882
883883
```js
884-
"homepage": "http://myusername.github.io/my-app",
884+
"homepage": "https://myusername.github.io/my-app",
885885
```
886886
887887
**The above step is important!**<br>
888888
Create React App uses the `homepage` field to determine the root URL in the built HTML file.
889889
890890
Now, whenever you run `npm run build`, you will see a cheat sheet with instructions on how to deploy to GitHub pages.
891891
892-
To publish it at [http://myusername.github.io/my-app](http://myusername.github.io/my-app), run:
892+
To publish it at [https://myusername.github.io/my-app](https://myusername.github.io/my-app), run:
893893
894894
```sh
895895
npm install --save-dev gh-pages

0 commit comments

Comments
 (0)