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
Adjusted deployment documentation for ZEIT Now (#7488)
* Adjusted deployment documentation for ZEIT Now
* Fixed missing word
* Update docusaurus/docs/deployment.md
Co-Authored-By: Joe Haddad <[email protected]>
Copy file name to clipboardExpand all lines: docusaurus/docs/deployment.md
+17-9
Original file line number
Diff line number
Diff line change
@@ -436,27 +436,35 @@ To support `pushState`, make sure to create a `public/_redirects` file with the
436
436
437
437
When you build the project, Create React App will place the `public` folder contents into the build output.
438
438
439
-
## [Now](https://zeit.co/now)
439
+
## [ZEIT Now](https://zeit.co)
440
440
441
-
[Now](https://zeit.co/docs) offers a simple, single-command deployment. You can use `now`to deploy your app forfree.
441
+
[ZEIT Now](https://zeit.co) is a cloud platform for websites and serverless APIs, that you can use to deploy your Create React App projects to your personal domain (or a free`.now.sh` suffixed URL).
442
442
443
-
The first step is to install Now. You can do this by installing [the Now Desktop app](https://zeit.co/download), which also installs Now CLI and keeps it up-to-date, or by [installing Now CLI](https://zeit.co/download#now-cli) directly with npm:
443
+
This guide will show you how to get started in a few quick steps:
444
+
445
+
### Step 1: Installing Now CLI
446
+
447
+
To install their command-line interface with [npm](https://www.npmjs.com/package/now), run the following command:
444
448
445
449
```shell
446
450
npm i -g now
447
451
```
448
452
449
-
To deploy your built project directly with Now CLI in your terminal, without any configuration:
453
+
### Step 2: Deploying
454
+
455
+
You can deploy your application by running the following commandin the root of the project directory:
450
456
451
-
1. Build your app by running `npm run build`.
457
+
```shell
458
+
now
459
+
```
452
460
453
-
2. Move into the build directory by running `cd build`.
461
+
**Alternatively**, you can also use their integration for [GitHub](https://zeit.co/github) or [GitLab](https://zeit.co/gitlab).
454
462
455
-
3. Run `now --name your-project-name` from within the build directory. You will be given a **now.sh** URL as a response as your build is deployed, similar to the following: https://my-cra-project-4rx7b16z3.now.sh/
463
+
That’s all!
456
464
457
-
Click or paste the deployment URL into your browser when the build is complete and you will see your deployed app.
465
+
Your site will now deploy, and you will receive a link similar to the following: https://react.now-examples.now.sh
458
466
459
-
For more information on deploying React applications with Now, including automatically building your application fresh inthe cloud, setting up routes to rewrite all paths to the index.html file, and setting up caching headersfor speed, see [the ZEIT Guide for Deploying a React app with Create React App](https://zeit.co/guides/deploying-react-with-now-cra/).
467
+
Out of the box, you are preconfigured for client-side routing compatibility and appropriate default caching headers. This behaviour can be overwritten [like this](https://zeit.co/docs/v2/advanced/routes/).
0 commit comments