Skip to content

Commit

Permalink
Gently nudge users towards https by default (facebook#974)
Browse files Browse the repository at this point in the history
gh-pages supports https. It's important for prominent help files to encourage best practices.
  • Loading branch information
Swizec authored and alexdriaguine committed Jan 23, 2017
1 parent c55aa7c commit 6126ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,15 +886,15 @@ This will let Create React App correctly infer the root path to use in the gener
Open your `package.json` and add a `homepage` field:
```js
"homepage": "http://myusername.github.io/my-app",
"homepage": "https://myusername.github.io/my-app",
```
**The above step is important!**<br>
Create React App uses the `homepage` field to determine the root URL in the built HTML file.
Now, whenever you run `npm run build`, you will see a cheat sheet with instructions on how to deploy to GitHub pages.
To publish it at [http://myusername.github.io/my-app](http://myusername.github.io/my-app), run:
To publish it at [https://myusername.github.io/my-app](https://myusername.github.io/my-app), run:
```sh
npm install --save-dev gh-pages
Expand Down

0 comments on commit 6126ac9

Please sign in to comment.