Skip to content

Commit

Permalink
docs: change zeit to vercel (#5807) [ci skip]
Browse files Browse the repository at this point in the history
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
  • Loading branch information
so1ve and haoqunjiang authored Aug 28, 2020
1 parent 929f1b0 commit e4e5926
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
24 changes: 12 additions & 12 deletions docs/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,20 +267,20 @@ You can now access your project on `https://<YOUR-PROJECT-ID>.firebaseapp.com` o

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

### Now
### Vercel

This example uses the latest Now platform version 2.
This example uses the latest Vercel platform version 2.

1. Install the Now CLI:
1. Install the Vercel CLI:

```bash
npm install -g now
npm install -g vercel
# Or, if you prefer a local one
npm install now
npm install vercel
```

2. Add a `now.json` file to your project root:
2. Add a `vercel.json` file to your project root:

```json
{
Expand All @@ -289,7 +289,7 @@ npm install now
"builds": [
{
"src": "package.json",
"use": "@now/static-build"
"use": "@vercel/static-build"
}
],
"routes": [
Expand Down Expand Up @@ -322,24 +322,24 @@ npm install now
```diff
- {
- "src": "package.json",
- "use": "@now/static-build"
- "use": "@vercel/static-build"
- }
+ {
+ "src": "package.json",
+ "use": "@now/static-build",
+ "use": "@vercel/static-build",
+ "config": { "distDir": "build" }
+ }
```

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

```json
"now-build": "npm run build"
"vercel-build": "npm run build"
```

To make a deployment, run `now`.
To make a deployment, run `vercel`.

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

### Stdlib

Expand Down
14 changes: 7 additions & 7 deletions docs/zh/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,31 +292,31 @@ firebase deploy --only hosting

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

### ZEIT Now
### Vercel

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

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

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

```
npm install -g now
npm install -g vercel
```

#### 步骤二:部署

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

```
now
vercel
```

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

大功告成!

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

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

Expand Down

0 comments on commit e4e5926

Please sign in to comment.