Skip to content

Commit 0a323a5

Browse files
author
Matthew Sweeney
authored
change staging to preview (#1430)
1 parent 7af82a5 commit 0a323a5

File tree

14 files changed

+56
-63
lines changed

14 files changed

+56
-63
lines changed

components/references-mdx/now-cli/commands/inspect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const meta = {
99

1010
## Inspect
1111

12-
The `now inspect` command is used to retrieve information about a deployment referenced either by its unique deployment URL, staging URL, or production domain.
12+
The `now inspect` command is used to retrieve information about a deployment referenced either by its unique deployment URL or production domain.
1313

1414
### Basic Usage
1515

components/references-mdx/now-cli/commands/remove.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ These are options that only apply to the `now remove` command, therefore, more i
5858

5959
#### Safe
6060

61-
The `--safe` option, shorthand `-s`, can be used to skip the removal of deployments with an active staging or production domain when a project is provided as the parameter.
61+
The `--safe` option, shorthand `-s`, can be used to skip the removal of deployments with an active preview URL or production domain when a project is provided as the parameter.
6262

6363
##### Usage Example
6464

lib/data/guides.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "/guides/deploying-a-mongodb-powered-api-with-node-and-now",
1717
"image": "undefined/guides/deploying-a-mongodb-powered-api-with-node-and-now/card.png",
1818
"editUrl": "pages/guides/deploying-a-mongodb-powered-api-with-node-and-now.mdx",
19-
"lastEdited": "2019-10-14T12:32:29.000Z"
19+
"lastEdited": "2019-11-01T15:20:23.000Z"
2020
},
2121
{
2222
"title": "Create an Angular App That Builds and Deploys with ZEIT Now",
@@ -252,7 +252,7 @@
252252
"authors": ["timothy", "grovesjoseph"],
253253
"url": "/guides/deploying-react-with-now-cra",
254254
"editUrl": "pages/guides/deploying-react-with-now-cra.mdx",
255-
"lastEdited": "2019-10-02T14:07:07.000Z"
255+
"lastEdited": "2019-11-01T15:20:23.000Z"
256256
},
257257
{
258258
"title": "Deploying Sanity Studio with ZEIT Now",
@@ -315,12 +315,12 @@
315315
},
316316
{
317317
"title": "Automatic Deployments with Now for GitLab",
318-
"description": "Setup ZEIT Now for GitLab and get automatic deployments and staging URLs for each push.",
318+
"description": "Setup ZEIT Now for GitLab and get automatic deployments and preview URLs for each push.",
319319
"published": "2019-04-01T09:03:14.819Z",
320320
"authors": ["arunoda", "timothy"],
321321
"url": "/guides/getting-started-with-now-for-gitlab",
322322
"editUrl": "pages/guides/getting-started-with-now-for-gitlab.mdx",
323-
"lastEdited": "2019-10-02T14:07:07.000Z"
323+
"lastEdited": "2019-11-01T15:20:23.000Z"
324324
},
325325
{
326326
"title": "Handling Node.js Request Bodies with ZEIT Now",

pages/docs/v2/advanced/now-for-github.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export const meta = {
1010
description:
1111
'Deploy each change in your GitHub repositories with ZEIT Now to share and test with your colleagues. Instant share-able links to your work with each push. Automatically make your changes available from production domains.',
1212
editUrl: 'pages/docs/v2/advanced/now-for-github.mdx',
13-
lastEdited: '2019-10-10T22:31:41.000Z'
13+
lastEdited: '2019-11-01T15:20:23.000Z'
1414
}
1515

16-
The Now for GitHub integration automatically deploys your GitHub projects with [ZEIT Now](/now), providing staging URLs and automatic production domain updates.
16+
The Now for GitHub integration automatically deploys your GitHub projects with [ZEIT Now](/now), providing preview URLs and automatic production domain updates.
1717

1818
The Now for GitHub integration features:
1919

@@ -79,9 +79,9 @@ If production domains are set from the project domains dashboard, pushes and mer
7979

8080
If you decide to revert a commit that has already updated a product domain, the previous commit's deployment will automatically be made available at the production domain instantly; providing you with instant rollbacks.
8181

82-
### Staging URLs for the Latest Changes for Each Pull Request
82+
### Preview URLs for the Latest Changes for Each Pull Request
8383

84-
The latest push to any pull request will automatically be made available at a unique staging URL based on the project name, branch, and team or username. These URLs will be given through a comment on each pull request.
84+
The latest push to any pull request will automatically be made available at a unique preview URL based on the project name, branch, and team or username. These URLs will be given through a comment on each pull request.
8585

8686
### Deployment Authorizations for Forks
8787

@@ -93,7 +93,7 @@ This behavior protects you and your project from a leak of sensitive information
9393

9494
Now for GitHub uses the deployment API to bring you an extended user interface both in GitHub, when showing deployments, and Slack, if you have notifications setup using the [Slack GitHub app](https://slack.github.com).
9595

96-
You will see all of your deployments, production or staging, from within GitHub in its own page. See the page for this very documentation: <https://github.com/zeit/docs/deployments>
96+
You will see all of your deployments, production or preview, from within GitHub in its own page. See the page for this very documentation: <https://github.com/zeit/docs/deployments>
9797

9898
Due to using GitHub's Deployments API, you will also be able to integrate with other services through [GitHub's checks](https://help.github.com/en/articles/about-status-checks). Now for GitHub will provide the deployment URL to the checks that require it, for example; to a testing suite such as [Ghost Inspector](https://ghostinspector.com/docs/integration/github/).
9999

pages/docs/v2/advanced/now-for-gitlab.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export const meta = {
99
description:
1010
'Deploy each change in your GitLab projects with ZEIT Now to share and test with your colleagues. Instant share-able links to your work with each push. Automatically make your changes available from production domains.',
1111
editUrl: 'pages/docs/v2/advanced/now-for-gitlab.mdx',
12-
lastEdited: '2019-10-30T09:43:23.000Z'
12+
lastEdited: '2019-11-01T15:20:23.000Z'
1313
}
1414

15-
The Now for GitLab integration automatically deploys your GitLab projects with [ZEIT Now](/now), providing staging URLs and automatic production domain updates.
15+
The Now for GitLab integration automatically deploys your GitLab projects with [ZEIT Now](/now), providing preview URLs and automatic production domain updates.
1616

1717
Now for GitLab provides:
1818

@@ -86,16 +86,16 @@ If production domains are set from the project domains dashboard, pushes and mer
8686

8787
If you decide to revert a commit that has already updated a product domain, the previous commit's deployment will automatically be made available at the production domain instantly; providing you with instant rollbacks.
8888

89-
### Staging URLs for Each Merge Request
89+
### preview URLs for Each Merge Request
9090

91-
The latest push to any pull request will automatically be made available at a unique staging URL based on the project name, branch, and team or username. These URLs will be given through a comment on each merge request.
91+
The latest push to any pull request will automatically be made available at a unique preview URL based on the project name, branch, and team or username. These URLs will be given through a comment on each merge request.
9292

9393
<Image
9494
src={`${process.env.ASSETS}/guides/getting-started-with-now-for-gitlab/merge-request-alias.png`}
9595
width={2080/2.5}
9696
height={1392/2.5}
9797
/>
98-
<Caption style={{marginTop: '-40px'}}>A staging URL created from a merge request.</Caption>
98+
<Caption style={{marginTop: '-40px'}}>A preview URL created from a merge request.</Caption>
9999

100100
## Included Environment Variables
101101

pages/docs/v2/git-integration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const meta = {
66
description:
77
'How to use the ZEIT Now Git Integrations for automatic deployments from your repository.',
88
editUrl: 'pages/docs/v2/git-integration.mdx',
9-
lastEdited: '2019-10-09T13:03:54.000Z'
9+
lastEdited: '2019-11-01T15:20:23.000Z'
1010
}
1111

1212
ZEIT Now provides integrations for your [GitHub](https://github.com) and [GitLab](https://gitlab.com) projects, allowing for **automatic deployments on every branch push** and merge to the default branch.
@@ -17,7 +17,7 @@ In addition, the Now Git integrations provide the following benefits:
1717
- Production domains updated for the most recent changes from the master branch
1818
- Instant rollbacks when reverting changes assigned to a production domain
1919

20-
The easiest way to use a Git integration is to think of your **master branch as production**. Every time a pull request is made to the master branch, Now will **create a unique deployment**, allowing you to **view the changes in a staging environment before merging**.
20+
The easiest way to use a Git integration is to think of your **master branch as production**. Every time a pull request is made to the master branch, Now will **create a unique deployment**, allowing you to **view the changes in a preview environment before merging**.
2121

2222
## Installation
2323

pages/docs/v2/introduction.mdx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const meta = {
88
description:
99
'An introduction to the ZEIT Now platform and how to get started deploying any kind of application.',
1010
editUrl: 'pages/docs/v2/introduction.mdx',
11-
lastEdited: '2019-10-09T12:52:23.000Z'
11+
lastEdited: '2019-11-01T15:20:23.000Z'
1212
}
1313

1414
ZEIT Now is a cloud platform for **static sites** and **Serverless Functions**. It enables developers to host websites and web services that **deploy instantly**, **scale automatically**, and requires **no supervision**, all with **no configuration**.
@@ -55,12 +55,9 @@ When your Next.js app is created, all you have to do is move into the directory
5555
/>
5656
<Caption>Deploying your new Next.js project with Now CLI.</Caption>
5757

58-
Once deployed, you will get a unique URL to reference the current version of your project, and a staging URL that is assigned on each deployment to share the latest changes under the same address.
58+
Once deployed, you will get a preview URL that is assigned on each deployment to share the latest changes under the same address.
5959

60-
These URLs look like the following:
61-
62-
- Unique Deployment URL: <https://my-next-project-6bnjtkazh.now.sh/>
63-
- Staging URL: <https://my-next-project.now-examples.now.sh/>
60+
The preview URL will look like the following: <https://my-next-project.now-examples.now.sh/>
6461

6562
## Related
6663

pages/docs/v2/network/frequently-asked-questions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const meta = {
55
description:
66
'A list of common questions and answers related to the ZEIT Network.',
77
editUrl: 'pages/docs/v2/network/frequently-asked-questions.mdx',
8-
lastEdited: '2019-10-09T12:52:23.000Z'
8+
lastEdited: '2019-11-01T15:20:23.000Z'
99
}
1010

1111
### What are the CDN defaults?
@@ -25,8 +25,8 @@ export const meta = {
2525

2626
### How do I purge the CDN cache?
2727

28-
- You can create a new deployment to invalidate the cache for your staging and production deployments.
29-
- Content will remain cached for staging URLs until it expires.
28+
- You can create a new deployment to invalidate the cache for your preview and production deployments.
29+
- Content will remain cached for preview URLs until it expires.
3030

3131
### What are the limits of the CDN cache?
3232

pages/docs/v2/network/headers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const meta = {
66
title: 'Headers',
77
description: 'The list of headers included with deployments with ZEIT Now.',
88
editUrl: 'pages/docs/v2/network/headers.mdx',
9-
lastEdited: '2019-10-30T09:43:23.000Z'
9+
lastEdited: '2019-11-01T15:20:23.000Z'
1010
}
1111

1212
[HTTP headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) can be found in both the HTTP Request and HTTP Response.
@@ -17,7 +17,7 @@ The following headers are sent to each ZEIT Now deployment and can be used to pr
1717

1818
### `host`
1919

20-
This header represents the domain name as it was accessed by the client. If the deployment has been assigned to a staging or production domain and the client visits the domain URL, it contains the custom domain instead of the underlying deployment URL.
20+
This header represents the domain name as it was accessed by the client. If the deployment has been assigned to a preview URL or production domain and the client visits the domain URL, it contains the custom domain instead of the underlying deployment URL.
2121

2222
### `x-now-id`
2323

@@ -37,7 +37,7 @@ The public `ip address` of the client that made the request.
3737

3838
### `x-now-deployment-url`
3939

40-
This header represents the unique deployment, not the staging or production domain. For example, `test-5uyfnapzg.now.sh`.
40+
This header represents the unique deployment, not the preview URL or production domain. For example, `test-5uyfnapzg.now.sh`.
4141

4242
### `x-now-trace`
4343

pages/docs/v2/platform/deployments.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const meta = {
1010
title: 'Deployments',
1111
description: 'Understanding and making deployments with ZEIT Now.',
1212
editUrl: 'pages/docs/v2/platform/deployments.mdx',
13-
lastEdited: '2019-10-30T09:43:23.000Z'
13+
lastEdited: '2019-11-01T15:20:23.000Z'
1414
}
1515

1616
A deployment is the result of building your [Project](/docs/v2/platform/projects/) and making it available through a live URL.
@@ -23,29 +23,29 @@ There are multiple ways to make deployments with ZEIT Now; these include via a [
2323

2424
When making deployments, the [Project](/docs/v2/platform/projects/) will be uploaded and transformed into a production-ready output through the use of a [Build Step](/docs/v2/build-step).
2525

26-
Once the build step has completed successfully, a new, [immutable](https://en.wikipedia.org/wiki/Immutable_object) deployment will be made available at the [staging domain](/docs/v2/platform/deployments/#staging).
26+
Once the build step has completed successfully, a new, [immutable](https://en.wikipedia.org/wiki/Immutable_object) deployment will be made available at the [preview URL](/docs/v2/platform/deployments/#preview).
2727

2828
### Git Integration
2929

3030
You can make deployments with Git by using either the [Now for GitHub](/docs/v2/advanced/now-for-github/) or [Now for GitLab](/docs/v2/advanced/now-for-gitlab/) integrations.
3131

32-
When using these integrations, every push to a branch will provide you with a [staging deployment](/docs/v2/platform/deployments/#staging) to view your changes.
32+
When using these integrations, every push to a branch will provide you with a [preview deployment](/docs/v2/platform/deployments/#preview) to view your changes.
3333

3434
When merging to the default branch (commonly `master`), a [production deployment](/docs/v2/platform/deployments/#production) will be made.
3535

3636
### Now CLI
3737

3838
By using [Now CLI](/download), you can deploy [Projects](/docs/v2/platform/projects/) with **a single command** from your terminal.
3939

40-
To make a [staging deployment](/docs/v2/platform/deployments/#staging), use the `now` command:
40+
To make a [preview deployment](/docs/v2/platform/deployments/#preview), use the `now` command:
4141

4242
<Snippet dark text="now" />
43-
<Caption>Making a staging deployment with the <InlineCode>now</InlineCode> command.</Caption>
43+
<Caption>Making a preview deployment with the <InlineCode>now</InlineCode> command.</Caption>
4444

4545
<Note>
4646
The first deployment for a <strong>Project</strong> is always both a{' '}
47-
<GenericLink href="/docs/v2/platform/deployments/#staging">
48-
staging
47+
<GenericLink href="/docs/v2/platform/deployments/#preview">
48+
preview
4949
</GenericLink>{' '}
5050
and{' '}
5151
<GenericLink href="/docs/v2/platform/deployments/#production">
@@ -54,7 +54,7 @@ To make a [staging deployment](/docs/v2/platform/deployments/#staging), use the
5454
deployment.
5555
</Note>
5656

57-
To make a [production deployment](/docs/v2/platform/deployments/#staging), use the `now --prod` command:
57+
To make a [production deployment](/docs/v2/platform/deployments/#preview), use the `now --prod` command:
5858

5959
<Snippet dark text="now --prod" />
6060
<Caption>Making a production deployment with the <InlineCode>now</InlineCode> command.</Caption>
@@ -83,15 +83,15 @@ You can find more information about the Now API in the [API Reference](/docs/api
8383

8484
## Deployment Types
8585

86-
There are two types of deployment on the ZEIT Now platform: **staging** and **production**.
86+
There are two types of deployment on the ZEIT Now platform: **preview** and **production**.
8787

88-
### Staging
88+
### Preview
8989

90-
**Staging deployments** are the default for all deployments. Each time you push to a branch or make a deployment using the `now` command, this is a **staging deployment**.
90+
**Preview deployments** are the default for all deployments. Each time you push to a branch or make a deployment using the `now` command, this is a **preview deployment**.
9191

92-
By making a **staging deployment**, the **staging domain** will be updated to reflect that of the latest deployment made.
92+
By making a **preview deployment**, the **preview URL** will be updated to reflect that of the latest deployment made.
9393

94-
The **staging domain** is provided either by the deployment output from Now CLI or on a pull or merge request when using a git integration and contains the name of the user or team to which the [Project](/docs/v2/platform/projects/) belongs.
94+
The **preview URL** is provided either by the deployment output from Now CLI or on a pull or merge request when using a git integration and contains the name of the user or team to which the [Project](/docs/v2/platform/projects/) belongs.
9595

9696
### Production
9797

pages/docs/v2/serverless-functions/edge-caching.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const meta = {
88
description:
99
'Learn how Serverless Function responses are cached with ZEIT Now and how you can define the cache behavior.',
1010
editUrl: 'pages/docs/v2/serverless-functions/edge-caching.mdx',
11-
lastEdited: '2019-10-30T09:43:23.000Z'
11+
lastEdited: '2019-11-01T15:20:23.000Z'
1212
}
1313

1414
The ZEIT Smart CDN is active for all deployments and domains on your account and caches your content at [the edge](/docs/v2/network/regions-and-providers/) to serve data to your users as fast as possible.
@@ -84,7 +84,7 @@ When the CDN receives a request with `Pragma: no-cache` (such as when the browse
8484

8585
## Cache Invalidation and Purging
8686

87-
Every time you deploy with [a custom domain](/docs/v2/custom-domains#deploying-with-your-domain) (production or staging custom domain), the cache for that domain is purged. This means that users will never see content from a previous deployment on your custom domain and there is no need to invalidate it manually when deploying.
87+
Every time you deploy with [a custom domain](/docs/v2/custom-domains#deploying-with-your-domain), the cache for that domain is purged. This means that users will never see content from a previous deployment on your custom domain and there is no need to invalidate it manually when deploying.
8888

8989
export default ({ children }) => <Doc meta={meta}>{children}</Doc>
9090

pages/guides/deploying-a-mongodb-powered-api-with-node-and-now.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const meta = {
1717
process.env.ASSETS
1818
}/guides/deploying-a-mongodb-powered-api-with-node-and-now/card.png`,
1919
editUrl: 'pages/guides/deploying-a-mongodb-powered-api-with-node-and-now.mdx',
20-
lastEdited: '2019-10-14T12:32:29.000Z'
20+
lastEdited: '2019-11-01T15:20:23.000Z'
2121
}
2222

2323
In this guide, we will walk you through creating and [deploying](/docs/v2/deployments/basics/) a [Node.js](https://nodejs.org/) API powered by [MongoDB](https://www.mongodb.com/), on [ZEIT Now](/now).
@@ -233,8 +233,6 @@ Using the default port, you can find your new API endpoint at <http://localhost:
233233

234234
The next and final step is to deploy your app with a single command.
235235

236-
With Now, you can deploy your app to [different environments](/docs/v2/custom-domains#deploying-with-your-domain), depending on what stage your app is at; either staging or production.
237-
238236
To deploy your MongoDB API, use the following [Now CLI](/download) command from your terminal:
239237

240238
<Snippet dark text="now" />

pages/guides/deploying-react-with-now-cra.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const meta = {
1212
authors: ['timothy', 'grovesjoseph'],
1313
url: '/guides/deploying-react-with-now-cra',
1414
editUrl: 'pages/guides/deploying-react-with-now-cra.mdx',
15-
lastEdited: '2019-10-02T14:07:07.000Z'
15+
lastEdited: '2019-11-01T15:20:23.000Z'
1616
}
1717

1818
[React](https://reactjs.org/) is a popular open-source JavaScript framework, maintained by Facebook, for easily creating interactive [single-page apps](https://en.wikipedia.org/wiki/Single-page_application) (SPAs).
@@ -42,8 +42,6 @@ With your React application set up, it is ready to deploy with [Now](/docs/v2).
4242

4343
If you have not yet installed Now, you can do so by [installing Now CLI](/download).
4444

45-
With Now, you can deploy your app to [different environments](/docs/v2/custom-domains#deploying-with-your-domain), depending on what stage your app is at; either staging or production.
46-
4745
To deploy your React project, use the following [Now CLI](/download) command from your terminal:
4846

4947
<Snippet dark text="now" />

0 commit comments

Comments
 (0)