File tree 1 file changed +2
-2
lines changed
packages/react-scripts/template
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -886,15 +886,15 @@ This will let Create React App correctly infer the root path to use in the gener
886
886
Open your `package.json` and add a `homepage` field:
887
887
888
888
```js
889
- "homepage": "http ://myusername.github.io/my-app",
889
+ "homepage": "https ://myusername.github.io/my-app",
890
890
```
891
891
892
892
**The above step is important!**<br>
893
893
Create React App uses the `homepage` field to determine the root URL in the built HTML file.
894
894
895
895
Now, whenever you run `npm run build`, you will see a cheat sheet with instructions on how to deploy to GitHub pages.
896
896
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:
898
898
899
899
```sh
900
900
npm install --save-dev gh-pages
You can’t perform that action at this time.
0 commit comments