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
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
22
22
-[Deployment](#deployment)
23
23
-[Now](#now)
24
24
-[Heroku](#heroku)
25
+
-[Surge](#surge)
25
26
-[GitHub Pages](#github-pages)
26
27
-[Something Missing?](#something-missing)
27
28
@@ -400,6 +401,27 @@ See [this example](https://github.com/xkawi/create-react-app-now) for a zero-con
400
401
401
402
Use the [Heroku Buildpack for create-react-app](https://github.com/mars/create-react-app-buildpack).
402
403
404
+
### Surge
405
+
406
+
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.
407
+
408
+
```sh
409
+
email: email@domain.com
410
+
password:********
411
+
project path:/path/to/project/build
412
+
size:7 files, 1.8MB
413
+
domain: create-react-app.surge.sh
414
+
upload: [====================] 100%, eta:0.0s
415
+
propagate on CDN: [====================] 100%
416
+
plan: Free
417
+
users: email@domain.com
418
+
IP Address:X.X.X.X
419
+
420
+
Success! Project is published and running at create-react-app.surge.sh
421
+
```
422
+
423
+
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).
424
+
403
425
### GitHub Pages
404
426
405
427
>Note: this feature is available with `react-scripts@0.2.0` and higher.
0 commit comments