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