Skip to content

Commit 6126ac9

Browse files
Swizecalexdriaguine
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 c55aa7c commit 6126ac9

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
@@ -886,15 +886,15 @@ This will let Create React App correctly infer the root path to use in the gener
886886
Open your `package.json` and add a `homepage` field:
887887
888888
```js
889-
"homepage": "http://myusername.github.io/my-app",
889+
"homepage": "https://myusername.github.io/my-app",
890890
```
891891
892892
**The above step is important!**<br>
893893
Create React App uses the `homepage` field to determine the root URL in the built HTML file.
894894
895895
Now, whenever you run `npm run build`, you will see a cheat sheet with instructions on how to deploy to GitHub pages.
896896
897-
To publish it at [http://myusername.github.io/my-app](http://myusername.github.io/my-app), run:
897+
To publish it at [https://myusername.github.io/my-app](https://myusername.github.io/my-app), run:
898898
899899
```sh
900900
npm install --save-dev gh-pages

0 commit comments

Comments
 (0)