Skip to content

Commit 35d84ef

Browse files
authored
Make Surge guide more focused
1 parent 9512d97 commit 35d84ef

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

packages/react-scripts/template/README.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -1539,21 +1539,12 @@ See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-t
15391539
15401540
### Surge
15411541
1542-
Install the Surge CLI if you haven’t already by running `npm install -g surge`. Run the `surge` command and log in you or create a new account. You just need to specify the *build* folder and your custom domain, and you are done.
1542+
Install the Surge CLI if you haven’t already by running `npm install -g surge`. Run the `surge` command and log in you or create a new account.
1543+
1544+
When asked about the project path, make sure to specify the `build` folder, for example:
15431545
15441546
```sh
1545-
1546-
password: ********
15471547
project path: /path/to/project/build
1548-
size: 7 files, 1.8 MB
1549-
domain: create-react-app.surge.sh
1550-
upload: [====================] 100%, eta: 0.0s
1551-
propagate on CDN: [====================] 100%
1552-
plan: Free
1553-
1554-
IP Address: X.X.X.X
1555-
1556-
Success! Project is published and running at create-react-app.surge.sh
15571548
```
15581549
15591550
Note that in order to support routers that use HTML5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).

0 commit comments

Comments
 (0)