You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-scripts/template/README.md
+3-12Lines changed: 3 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1537,21 +1537,12 @@ See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-t
1537
1537
1538
1538
### Surge
1539
1539
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:
1541
1543
1542
1544
```sh
1543
-
email: email@domain.com
1544
-
password: ********
1545
1545
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
-
users: email@domain.com
1552
-
IP Address: X.X.X.X
1553
-
1554
-
Success! Project is published and running at create-react-app.surge.sh
1555
1546
```
1556
1547
1557
1548
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