Skip to content

Commit 2a3ab06

Browse files
authored
Revert "Update system env variables prefix to VERCEL_" (#1785)
1 parent fc08f25 commit 2a3ab06

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

lib/data/v2/system-env-variables.js

+29-29
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import Link from '~/components/text/link'
33

44
export const BASE_SYSTEM_ENVS = [
55
{
6-
name: 'VERCEL_URL',
6+
name: 'NOW_URL',
77
description: 'The URL of the deployment.'
88
}
99
]
1010

1111
export const GITHUB_SYSTEM_ENVS = [
1212
{
13-
name: 'VERCEL_GITHUB_DEPLOYMENT',
13+
name: 'NOW_GITHUB_DEPLOYMENT',
1414
description: (
1515
<>
1616
An indicator for whether the app was deployed by <ProductName /> for
@@ -19,30 +19,30 @@ export const GITHUB_SYSTEM_ENVS = [
1919
)
2020
},
2121
{
22-
name: 'VERCEL_GITHUB_ORG',
22+
name: 'NOW_GITHUB_ORG',
2323
description:
2424
'The GitHub organization that owns the repository the deployment is triggered from.'
2525
},
2626
{
27-
name: 'VERCEL_GITHUB_REPO',
27+
name: 'NOW_GITHUB_REPO',
2828
description: 'The origin repository of the app on GitHub.'
2929
},
3030
{
31-
name: 'VERCEL_GITHUB_COMMIT_ORG',
31+
name: 'NOW_GITHUB_COMMIT_ORG',
3232
description:
3333
'The GitHub organization of which the commit belongs. For example, when submitting a pull request from a forked repository.'
3434
},
3535
{
36-
name: 'VERCEL_GITHUB_COMMIT_REPO',
36+
name: 'NOW_GITHUB_COMMIT_REPO',
3737
description:
3838
'The GitHub repository of which the commit belongs. For example, when submitting a pull request from a forked repository.'
3939
},
4040
{
41-
name: 'VERCEL_GITHUB_COMMIT_REF',
41+
name: 'NOW_GITHUB_COMMIT_REF',
4242
description: 'The GitHub branch that the deployment was made from.'
4343
},
4444
{
45-
name: 'VERCEL_GITHUB_COMMIT_SHA',
45+
name: 'NOW_GITHUB_COMMIT_SHA',
4646
description: (
4747
<>
4848
The GitHub{' '}
@@ -54,20 +54,20 @@ export const GITHUB_SYSTEM_ENVS = [
5454
)
5555
},
5656
{
57-
name: 'VERCEL_GITHUB_COMMIT_AUTHOR_LOGIN',
57+
name: 'NOW_GITHUB_COMMIT_AUTHOR_LOGIN',
5858
description:
5959
'The GitHub username belonging to the author of the commit that the project was deployed by.'
6060
},
6161
{
62-
name: 'VERCEL_GITHUB_COMMIT_AUTHOR_NAME',
62+
name: 'NOW_GITHUB_COMMIT_AUTHOR_NAME',
6363
description:
6464
'The GitHub name belonging to the author of the commit that the project was deployed by.'
6565
}
6666
]
6767

6868
export const GITLAB_SYSTEM_ENVS = [
6969
{
70-
name: 'VERCEL_GITLAB_DEPLOYMENT',
70+
name: 'NOW_GITLAB_DEPLOYMENT',
7171
description: (
7272
<>
7373
An indicator for whether the app was deployed by <ProductName /> for
@@ -76,50 +76,50 @@ export const GITLAB_SYSTEM_ENVS = [
7676
)
7777
},
7878
{
79-
name: 'VERCEL_GITLAB_PROJECT_NAMESPACE',
79+
name: 'NOW_GITLAB_PROJECT_NAMESPACE',
8080
description:
8181
'The GitLab user, group, or sub-group that the project belongs to.'
8282
},
8383
{
84-
name: 'VERCEL_GITLAB_PROJECT_NAME',
84+
name: 'NOW_GITLAB_PROJECT_NAME',
8585
description: 'The GitLab name of the deployed project.'
8686
},
8787
{
88-
name: 'VERCEL_GITLAB_PROJECT_ID',
88+
name: 'NOW_GITLAB_PROJECT_ID',
8989
description: 'The GitLab ID of the deployed project.'
9090
},
9191
{
92-
name: 'VERCEL_GITLAB_PROJECT_PATH',
92+
name: 'NOW_GITLAB_PROJECT_PATH',
9393
description: 'The GitLab project path.'
9494
},
9595
{
96-
name: 'VERCEL_GITLAB_COMMIT_REF',
96+
name: 'NOW_GITLAB_COMMIT_REF',
9797
description: 'The GitLab branch that the deployment was triggered by.'
9898
},
9999
{
100-
name: 'VERCEL_GITLAB_COMMIT_SHA',
100+
name: 'NOW_GITLAB_COMMIT_SHA',
101101
description: 'The GitLab sha of the commit the deployment was triggered by.'
102102
},
103103
{
104-
name: 'VERCEL_GITLAB_COMMIT_MESSAGE',
104+
name: 'NOW_GITLAB_COMMIT_MESSAGE',
105105
description:
106106
'The message accompanying the GitLab commit that the deployment was triggered by.'
107107
},
108108
{
109-
name: 'VERCEL_GITLAB_COMMIT_AUTHOR_LOGIN',
109+
name: 'NOW_GITLAB_COMMIT_AUTHOR_LOGIN',
110110
description:
111111
'The username belonging to the author of the commit that was deployed on GitLab.'
112112
},
113113
{
114-
name: 'VERCEL_GITLAB_COMMIT_AUTHOR_NAME',
114+
name: 'NOW_GITLAB_COMMIT_AUTHOR_NAME',
115115
description:
116116
'The name belonging to the author of the commit that was deployed on GitLab.'
117117
}
118118
]
119119

120120
export const BITBUCKET_SYSTEM_ENVS = [
121121
{
122-
name: 'VERCEL_BITBUCKET_DEPLOYMENT',
122+
name: 'NOW_BITBUCKET_DEPLOYMENT',
123123
description: (
124124
<>
125125
An indicator for whether the app was deployed by <ProductName /> for
@@ -128,37 +128,37 @@ export const BITBUCKET_SYSTEM_ENVS = [
128128
)
129129
},
130130
{
131-
name: 'VERCEL_BITBUCKET_REPO_OWNER',
131+
name: 'NOW_BITBUCKET_REPO_OWNER',
132132
description: 'The Bitbucket user or team that the project belongs to.'
133133
},
134134
{
135-
name: 'VERCEL_BITBUCKET_REPO_SLUG',
135+
name: 'NOW_BITBUCKET_REPO_SLUG',
136136
description: 'The slug of the Bitbucket repository that was deployed.'
137137
},
138138
{
139-
name: 'VERCEL_BITBUCKET_REPO_NAME',
139+
name: 'NOW_BITBUCKET_REPO_NAME',
140140
description: 'The name of the Bitbucket repository that was deployed.'
141141
},
142142
{
143-
name: 'VERCEL_BITBUCKET_COMMIT_REF',
143+
name: 'NOW_BITBUCKET_COMMIT_REF',
144144
description: 'The Bitbucket branch that the deployment was triggered by.'
145145
},
146146
{
147-
name: 'VERCEL_BITBUCKET_COMMIT_SHA',
147+
name: 'NOW_BITBUCKET_COMMIT_SHA',
148148
description:
149149
'The Bitbucket sha of the commit the deployment was triggered by.'
150150
},
151151
{
152-
name: 'VERCEL_BITBUCKET_COMMIT_MESSAGE',
152+
name: 'NOW_BITBUCKET_COMMIT_MESSAGE',
153153
description:
154154
'The message accompanying the Bitbucket commit that was deployed.'
155155
},
156156
{
157-
name: 'VERCEL_BITBUCKET_COMMIT_AUTHOR_NAME',
157+
name: 'NOW_BITBUCKET_COMMIT_AUTHOR_NAME',
158158
description: 'The name of the commit author on Bitbucket.'
159159
},
160160
{
161-
name: 'VERCEL_BITBUCKET_COMMIT_AUTHOR_URL',
161+
name: 'NOW_BITBUCKET_COMMIT_AUTHOR_URL',
162162
description: 'Bitbucket profile URL of the commit author.'
163163
}
164164
]

pages/docs/v2/platform/limits.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const meta = {
99
title: 'Limits',
1010
description: `A list of limits and limitations that apply on the ${PRODUCT_NAME} platform.`,
1111
editUrl: 'pages/docs/v2/platform/limits.mdx',
12-
lastEdited: '2020-04-24T11:13:55.000Z'
12+
lastEdited: '2020-04-17T16:45:50.000Z'
1313
}
1414

1515
This page outlines all relevant limits and limitations present when using the <ProductName /> platform.
@@ -118,7 +118,6 @@ When attempting to deploy Serverless Functions to multiple regions on the Hobby
118118

119119
The following environment variable names are [reserved](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#lambda-environment-variables) and therefore unavailable for use:
120120

121-
- Names starting with `VERCEL_`
122121
- Names starting with `NOW_`
123122
- `AWS_REGION`
124123
- `AWS_DEFAULT_REGION`

0 commit comments

Comments
 (0)