Skip to content

Commit a8224a5

Browse files
author
Matthew Sweeney
authored
Add Deployments Page (#1406)
* framework for deployments page * remove historical overview * remove immutability * remove concepts * update sidebar * remove add-ons * remove changes in now 2 * remove redundant redirect * remove link to changes page * remove add-ons from sidebar * draft making deployments * rephrase making deployments intro * minor restructure * update managing deployments * add api for managing deployments * merge cli and api * raise deployment types * minor * change migration links * Apply suggestions from code review Co-Authored-By: Timothy <[email protected]> Co-Authored-By: Allen Hai <[email protected]> * update links * update links * replace lambda with serverless function
1 parent df4ed9a commit a8224a5

37 files changed

+212
-970
lines changed

components/layout/docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class withDoc extends React.Component {
152152
the version 2 documentation
153153
</GenericLink>
154154
. If you have yet to upgrade, see the{' '}
155-
<GenericLink href="/guides/upgrade-to-2-0">
155+
<GenericLink href="/guides/migrate-to-zeit-now/">
156156
upgrade guide
157157
</GenericLink>
158158
.

components/references-mdx/builders/advanced/advanced.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Tag from '~/components/text/tag'
77

88
export const meta = {
99
editUrl: 'pages/docs/builders/builders-mdx/advanced/advanced.mdx',
10-
lastEdited: '2019-10-28T13:42:13.000Z'
10+
lastEdited: '2019-10-22T21:47:59.000Z'
1111
}
1212

1313
# Advanced Usage
@@ -611,7 +611,7 @@ run Sinatra::Application
611611

612612
## Developing Your Own Builder
613613

614-
Extending the feature-set of a ZEIT Now deployment is as simple as creating a Builder that takes a list of files and outputs either static files or dynamic [Serverless Functions](/docs/v2/advanced/concepts/serverless-functions).
614+
Extending the feature-set of a ZEIT Now deployment is as simple as creating a Builder that takes a list of files and outputs either static files or dynamic [Serverless Functions](/docs/v2/serverless-functions/introduction/).
615615

616616
[A full API reference is available to help with creating Builders.](https://github.com/zeit/now/blob/canary/DEVELOPING_A_BUILDER.md)
617617

components/references-mdx/builders/official-builders/official-builders.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import Tag from '~/components/text/tag'
99
export const meta = {
1010
editUrl:
1111
'pages/docs/builders/builders-mdx/official-builders/official-builders.mdx',
12-
lastEdited: '2019-09-25T23:16:10.000Z'
12+
lastEdited: '2019-10-22T21:47:59.000Z'
1313
}
1414

1515
# Official Builders
1616

17-
Builders are modules that transform your source code into compiled outputs, being either static files and/or [Serverless Functions](/docs/v2/advanced/concepts/serverless-functions), which are served by our [CDN at the edge](https://zeit.co/docs/v2/advanced/concepts/cdn-and-global-distribution/).
17+
Builders are modules that transform your source code into compiled outputs, being either static files and/or [Serverless Functions](/docs/v2/serverless-functions/introduction/), which are served by our [CDN at the edge](/docs/v2/network/caching/).
1818

1919
<Note warning>
2020
In most cases, advanced Builders usage with configuration is not necessary.

components/references-mdx/configuration/configuration/configuration.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Note from '~/components/text/note'
77
export const meta = {
88
editUrl:
99
'pages/docs/configuration/configuration-mdx/configuration/configuration.mdx',
10-
lastEdited: '2019-10-17T14:44:04.000Z'
10+
lastEdited: '2019-10-22T21:47:59.000Z'
1111
}
1212

1313
# Project
@@ -85,11 +85,11 @@ Furthermore, it also affects any other actions that the user takes within the di
8585

8686
**Valid values:** environment keys and values.
8787

88-
Environment variables passed to the invoked [Serverless Functions](/docs/v2/advanced/concepts/serverless-functions).
88+
Environment variables passed to the invoked [Serverless Functions](/docs/v2/serverless-functions/introduction/).
8989

9090
<P>
9191
This example will pass the <InlineCode>MY_KEY</InlineCode> static env to all{' '}
92-
<GenericLink href="/docs/v2/advanced/concepts/serverless-functions">
92+
<GenericLink href="/docs/v2/serverless-functions/introduction/">
9393
Serverless Functions
9494
</GenericLink>{' '}
9595
and <InlineCode>SECRET</InlineCode> resolved from the{' '}
@@ -149,7 +149,7 @@ Environment variables passed to the invoked [Serverless Functions](/docs/v2/adva
149149
The following will include all HTML files as-is (to be served statically),
150150
and <GenericLink href="/docs/v2/advanced/builders">Build</GenericLink> all
151151
Python files and JS files into{' '}
152-
<GenericLink href="/docs/v2/advanced/concepts/serverless-functions">
152+
<GenericLink href="/docs/v2/serverless-functions/introduction/">
153153
Serverless Functions
154154
</GenericLink>
155155
.
@@ -193,7 +193,7 @@ For more information on Builds and Builders, see the documentation:
193193

194194
<P>
195195
This example configures custom routes that map to static files and{' '}
196-
<GenericLink href="/docs/v2/advanced/concepts/serverless-functions">
196+
<GenericLink href="/docs/v2/serverless-functions/introduction/">
197197
Serverless Functions
198198
</GenericLink>
199199
.
@@ -226,9 +226,9 @@ For more information on routes, see the documentation:
226226

227227
**Valid values:** a list of valid [region identifiers](/docs/v2/advanced/platform/regions-and-providers).
228228

229-
By setting and modifying this value, you can decide the deployment **regions** of the [Serverless Functions](/docs/v2/advanced/concepts/serverless-functions) that get created as a result of the [build steps](/docs/v2/build-step). By default, the closest region to the geographical location of the deployment is used, or if using a Now for Git integration, SFO is used by default.
229+
By setting and modifying this value, you can decide the deployment **regions** of the [Serverless Functions](/docs/v2/serverless-functions/introduction/) that get created as a result of the [build steps](/docs/v2/build-step). By default, the closest region to the geographical location of the deployment is used, or if using a Now for Git integration, SFO is used by default.
230230

231-
This value does not impact static files or edge caches, since deployments always have a [CDN layer](/docs/v2/advanced/concepts/cdn-and-global-distribution/) in front.
231+
This value does not impact static files or edge caches, since deployments always have a [CDN layer](/docs/v2/network/caching/) in front.
232232

233233
The special value `all` can be used to target all available regions.
234234

@@ -247,7 +247,7 @@ The special value `all` can be used to target all available regions.
247247

248248
**Type**: `Boolean`.
249249

250-
When set to `true`, both the [source view](/docs/v2/advanced/concepts/special-paths#source-view) and [logs view](/docs/v2/advanced/concepts/special-paths#logs-view) will be publicly accessible (when the user is authenticated with ZEIT).
250+
When set to `true`, both the [source view](/docs/v2/advanced/platform/deployments/#source-view) and [logs view](/docs/v2/advanced/platform/deployments/#logs-view) will be publicly accessible (when the user is authenticated with ZEIT).
251251

252252
<Code lang="json">{`{
253253
"public": true

components/references-mdx/configuration/routes/routes.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Code } from '~/components/text/code'
77

88
export const meta = {
99
editUrl: 'pages/docs/configuration/configuration-mdx/routes/routes.mdx',
10-
lastEdited: '2019-10-17T14:44:04.000Z'
10+
lastEdited: '2019-10-22T21:47:59.000Z'
1111
}
1212

1313
# Routes
@@ -219,7 +219,7 @@ As an example, you can use this property when you have an API endpoint and only
219219
</GenericLink>{' '}
220220
Builder as an example of a <InlineCode>now.json</InlineCode> configuration
221221
that tells Now to build JavaScript files with Node.js and outputs them as{' '}
222-
<GenericLink href="/docs/v2/advanced/concepts/serverless-functions/">
222+
<GenericLink href="/docs/v2/serverless-functions/introduction/">
223223
Serverless Functions
224224
</GenericLink>
225225
.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { GenericLink } from '~/components/text/link'
66

77
export const meta = {
88
editUrl: 'pages/docs/now-cli/now-cli-mdx/commands/remove.mdx',
9-
lastEdited: '2019-10-15T22:03:42.000Z'
9+
lastEdited: '2019-10-22T21:47:59.000Z'
1010
}
1111

1212
## Remove
@@ -34,7 +34,7 @@ The `now remove` command, which can be shortened to `now rm`, is used to remove
3434

3535
<Note type="warning">
3636
By using the{' '}
37-
<GenericLink href="/docs/v2/advanced/concepts/urls#project-name">
37+
<GenericLink href="/docs/v2/advanced/platform/projects/">
3838
project name
3939
</GenericLink>
4040
, the entire project will be removed from the account unless the <InlineCode>

lib/data/guides.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"url": "/guides/deploying-next-and-mysql-with-now",
144144
"image": "undefined/guides/deploying-next-mysql-with-now/deploying-next-mysql-with-now.png",
145145
"editUrl": "pages/guides/deploying-next-and-mysql-with-now.mdx",
146-
"lastEdited": "2019-10-14T12:32:29.000Z"
146+
"lastEdited": "2019-10-22T21:51:28.000Z"
147147
},
148148
{
149149
"title": "Create and Deploy a Next.js and Prismic App with ZEIT Now",
@@ -309,7 +309,7 @@
309309
"authors": ["msweeneydev"],
310310
"url": "/guides/handling-node-request-body",
311311
"editUrl": "pages/guides/handling-node-request-body.mdx",
312-
"lastEdited": "2019-09-24T17:47:39.000Z"
312+
"lastEdited": "2019-10-22T21:51:28.000Z"
313313
},
314314
{
315315
"title": "Migrate to ZEIT Now",
@@ -318,7 +318,7 @@
318318
"authors": ["msweeneydev", "timothy", "skllcrn"],
319319
"url": "/guides/migrate-to-zeit-now",
320320
"editUrl": "pages/guides/migrate-to-zeit-now.mdx",
321-
"lastEdited": "2019-09-24T17:47:39.000Z"
321+
"lastEdited": "2019-10-22T21:51:28.000Z"
322322
},
323323
{
324324
"title": "Prevent Uploading Source Paths with `.nowignore` on ZEIT Now",
@@ -336,7 +336,7 @@
336336
"authors": ["timothy"],
337337
"url": "/guides/redirect-from-www",
338338
"editUrl": "pages/guides/redirect-from-www.mdx",
339-
"lastEdited": "2019-10-14T12:32:29.000Z"
339+
"lastEdited": "2019-10-22T21:51:28.000Z"
340340
},
341341
{
342342
"title": "Setup a GoDaddy Domain with ZEIT Now",

lib/data/v2/docs.js

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -97,47 +97,17 @@ export default [
9797
name: 'Deploy Hooks',
9898
href: '/docs/v2/advanced/deploy-hooks'
9999
},
100-
{
101-
name: 'Deployment Concepts',
102-
overview: '/docs/v2/advanced/concepts/overview',
103-
posts: [
104-
{
105-
name: 'Overview',
106-
href: '/docs/v2/advanced/concepts/overview'
107-
},
108-
{
109-
name: 'Lifecycle',
110-
href: '/docs/v2/advanced/concepts/lifecycle'
111-
},
112-
{
113-
name: 'Immutability',
114-
href: '/docs/v2/advanced/concepts/immutability'
115-
},
116-
{
117-
name: 'URLs',
118-
href: '/docs/v2/advanced/concepts/urls'
119-
},
120-
{
121-
name: 'Special Paths',
122-
href: '/docs/v2/advanced/concepts/special-paths'
123-
},
124-
{
125-
name: 'Serverless Functions',
126-
href: '/docs/v2/advanced/concepts/serverless-functions'
127-
},
128-
{
129-
name: 'CDN and Global Distribution',
130-
href: '/docs/v2/advanced/concepts/cdn-and-global-distribution'
131-
}
132-
]
133-
},
134100
{
135101
name: 'Platform',
136102
posts: [
137103
{
138104
name: 'Overview',
139105
href: '/docs/v2/advanced/platform/overview'
140106
},
107+
{
108+
name: 'Deployments',
109+
href: '/docs/v2/advanced/platform/deployments'
110+
},
141111
{
142112
name: 'Projects',
143113
href: '/docs/v2/advanced/platform/projects'
@@ -146,21 +116,13 @@ export default [
146116
name: 'Users and Teams',
147117
href: '/docs/v2/advanced/platform/users-and-teams'
148118
},
149-
{
150-
name: 'Add-Ons',
151-
href: '/docs/v2/advanced/platform/add-ons'
152-
},
153-
{
154-
name: 'Glossary',
155-
href: '/docs/v2/advanced/platform/glossary'
156-
},
157119
{
158120
name: 'Limits',
159121
href: '/docs/v2/advanced/platform/limits'
160122
},
161123
{
162-
name: 'Changes in ZEIT Now 2.0',
163-
href: '/docs/v2/advanced/platform/changes-in-now-2-0'
124+
name: 'Glossary',
125+
href: '/docs/v2/advanced/platform/glossary'
164126
},
165127
{
166128
name: 'Frequently Asked Questions',

pages/docs/api/v1/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class APIPage extends Component {
200200
the version 2 API reference
201201
</GenericLink>
202202
. If you have yet to upgrade, see the{' '}
203-
<GenericLink href="/guides/upgrade-to-2-0">
203+
<GenericLink href="/guides/migrate-to-zeit-now/">
204204
upgrade guide
205205
</GenericLink>
206206
.

pages/docs/error/application/BODY_NOT_A_STRING_FROM_FUNCTION.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const meta = {
66
title: 'Body Not A String From Serverless Function',
77
description: 'The Serverless Function did not respond with a string.',
88
editUrl: 'pages/docs/error/application/BODY_NOT_A_STRING_FROM_FUNCTION.mdx',
9-
lastEdited: '2019-09-26T14:00:22.000Z'
9+
lastEdited: '2019-10-22T21:47:59.000Z'
1010
}
1111

1212
#### Application Error
@@ -27,7 +27,7 @@ This is an error with the application.
2727

2828
#### Troubleshoot
2929

30-
- Check the application logs, which can be found at the host URL under [the `/_logs` path](/docs/v2/advanced/concepts/special-paths#logs-view), for example:
30+
- Check the application logs, which can be found at the host URL under [the `/_logs` path](/docs/v2/advanced/platform/deployments/#logs-view), for example:
3131
```
3232
https://my-deployment-lwbxweoqjo.now.sh/_logs
3333
```

0 commit comments

Comments
 (0)