Commit 6aabe7e8 authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Clarify "homepage" field has special meaning

parent dcdcab0e
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
...@@ -552,6 +552,9 @@ Open your `package.json` and add a `homepage` field: ...@@ -552,6 +552,9 @@ Open your `package.json` and add a `homepage` field:
"homepage": "http://myusername.github.io/my-app", "homepage": "http://myusername.github.io/my-app",
``` ```
**The above step is important!**
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 a sequence of commands to deploy to GitHub pages: Now, whenever you run `npm run build`, you will see a cheat sheet with a sequence of commands to deploy to GitHub pages:
```sh ```sh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment