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: template/README.md
+3-12Lines changed: 3 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1539,21 +1539,12 @@ See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-t
1539
1539
1540
1540
### Surge
1541
1541
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:
1543
1545
1544
1546
```sh
1545
-
email: email@domain.com
1546
-
password: ********
1547
1547
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
-
users: email@domain.com
1554
-
IP Address: X.X.X.X
1555
-
1556
-
Success! Project is published and running at create-react-app.surge.sh
1557
1548
```
1558
1549
1559
1550
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