Skip to content

Commit e4e5926

Browse files
so1vehaoqunjiang
andauthored
docs: change zeit to vercel (#5807) [ci skip]
Co-authored-by: Haoqun Jiang <[email protected]>
1 parent 929f1b0 commit e4e5926

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

docs/guide/deployment.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -267,20 +267,20 @@ You can now access your project on `https://<YOUR-PROJECT-ID>.firebaseapp.com` o
267267

268268
Please refer to the [Firebase Documentation](https://firebase.google.com/docs/hosting/deploying) for more details.
269269

270-
### Now
270+
### Vercel
271271

272-
This example uses the latest Now platform version 2.
272+
This example uses the latest Vercel platform version 2.
273273

274-
1. Install the Now CLI:
274+
1. Install the Vercel CLI:
275275

276276
```bash
277-
npm install -g now
277+
npm install -g vercel
278278
279279
# Or, if you prefer a local one
280-
npm install now
280+
npm install vercel
281281
```
282282

283-
2. Add a `now.json` file to your project root:
283+
2. Add a `vercel.json` file to your project root:
284284

285285
```json
286286
{
@@ -289,7 +289,7 @@ npm install now
289289
"builds": [
290290
{
291291
"src": "package.json",
292-
"use": "@now/static-build"
292+
"use": "@vercel/static-build"
293293
}
294294
],
295295
"routes": [
@@ -322,24 +322,24 @@ npm install now
322322
```diff
323323
- {
324324
- "src": "package.json",
325-
- "use": "@now/static-build"
325+
- "use": "@vercel/static-build"
326326
- }
327327
+ {
328328
+ "src": "package.json",
329-
+ "use": "@now/static-build",
329+
+ "use": "@vercel/static-build",
330330
+ "config": { "distDir": "build" }
331331
+ }
332332
```
333333

334334
3. Adding a `now-build` script in `package.json`:
335335

336336
```json
337-
"now-build": "npm run build"
337+
"vercel-build": "npm run build"
338338
```
339339

340-
To make a deployment, run `now`.
340+
To make a deployment, run `vercel`.
341341

342-
If you want your deployment aliased, run `now --target production` instead.
342+
If you want your deployment aliased, run `vercel --target production` instead.
343343

344344
### Stdlib
345345

docs/zh/guide/deployment.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -292,31 +292,31 @@ firebase deploy --only hosting
292292

293293
请参考 [Firebase 文档](https://firebase.google.com/docs/hosting/deploying) 来获取更多细节。
294294

295-
### ZEIT Now
295+
### Vercel
296296

297-
[ZEIT Now](https://zeit.co/) 是一个网站和无服务器 (Serverless) API 云平台,你可以使用你的个人域名 (或是免费的 `.now.sh` URL) 部署你的 Vue 项目。
297+
[Vercel](https://vercel.com/) 是一个网站和无服务器 (Serverless) API 云平台,你可以使用你的个人域名 (或是免费的 `.vercel.app` URL) 部署你的 Vue 项目。
298298

299299
#### 步骤一:安装 Now CLI
300300

301-
要使用 [npm](https://www.npmjs.com/package/now) 安装其命令行界面,运行以下命令:
301+
要使用 [npm](https://www.npmjs.com/package/vercel) 安装其命令行界面,运行以下命令:
302302

303303
```
304-
npm install -g now
304+
npm install -g vercel
305305
```
306306

307307
#### 步骤二:部署
308308

309309
在项目根目录运行以下命令部署你的应用:
310310

311311
```
312-
now
312+
vercel
313313
```
314314

315-
**此外**,你还可以使用他们的 [GitHub](https://zeit.co/github) 或 [GitLab](https://zeit.co/gitlab) 集成服务。
315+
**此外**,你还可以使用他们的 [GitHub](https://vercel.com/github) 或 [GitLab](https://vercel.com/gitlab) 集成服务。
316316

317317
大功告成!
318318

319-
你的站点会开始部署,你将获得一个形如 [https://vue.now-examples.now.sh/](https://vue.now-examples.now.sh/) 的链接。
319+
你的站点会开始部署,你将获得一个形如 [https://vue.now-examples.now.sh/](https://vue.now-examples.now.sh/) (或`.vercel.app`)的链接。
320320

321321
开箱即用地,请求会被自动改写到 `index.html` (除了自定义的静态文件) 并带有合适的缓存请求头。
322322

0 commit comments

Comments
 (0)