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
+22
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
24
24
-[Deployment](#deployment)
25
25
-[Now](#now)
26
26
-[Heroku](#heroku)
27
+
-[Surge](#surge)
27
28
-[GitHub Pages](#github-pages)
28
29
-[Something Missing?](#something-missing)
29
30
@@ -519,6 +520,27 @@ See [this example](https://github.com/xkawi/create-react-app-now) for a zero-con
519
520
520
521
Use the [Heroku Buildpack for create-react-app](https://github.com/mars/create-react-app-buildpack).
521
522
523
+
### Surge
524
+
525
+
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.
526
+
527
+
```sh
528
+
email: email@domain.com
529
+
password: ********
530
+
project path: /path/to/project/build
531
+
size: 7 files, 1.8 MB
532
+
domain: create-react-app.surge.sh
533
+
upload: [====================] 100%, eta: 0.0s
534
+
propagate on CDN: [====================] 100%
535
+
plan: Free
536
+
users: email@domain.com
537
+
IP Address: X.X.X.X
538
+
539
+
Success! Project is published and running at create-react-app.surge.sh
540
+
```
541
+
542
+
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).
543
+
522
544
### GitHub Pages
523
545
524
546
>Note: this feature is available with `react-scripts@0.2.0` and higher.
0 commit comments