Skip to content

Commit 022822b

Browse files
gaearonTimer
authored andcommitted
Make Surge guide more focused
1 parent e3db147 commit 022822b

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
@@ -1537,21 +1537,12 @@ See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-t
15371537
15381538
### Surge
15391539
1540-
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.
1540+
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.
1541+
1542+
When asked about the project path, make sure to specify the `build` folder, for example:
15411543
15421544
```sh
1543-
1544-
password: ********
15451545
project path: /path/to/project/build
1546-
size: 7 files, 1.8 MB
1547-
domain: create-react-app.surge.sh
1548-
upload: [====================] 100%, eta: 0.0s
1549-
propagate on CDN: [====================] 100%
1550-
plan: Free
1551-
1552-
IP Address: X.X.X.X
1553-
1554-
Success! Project is published and running at create-react-app.surge.sh
15551546
```
15561547
15571548
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)