Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 更新 README,增加快速部署到 Vercel 步骤 #217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ amis 可视化编辑器, 在线体验:https://aisuda.github.io/amis-editor-dem
1. `npm i` 安装依赖
3. `npm run dev` 等编译完成后本地打开页面看效果。

## 快速部署

### Vercel
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Faisuda%2Famis-editor-demo)

#### 部署步骤
1. 点击 `Deploy` 按钮
2. 更新 `Vercel Build & Development Settings`
```
Build Command: npm run build
Output Directory: ./demo-5.6.1-v2
Install Command: npm install
```
3. 更新 `amis.config.js`
```js
// 省略
assetsPublicPath: './'
// 省略
```
4. Push 变更到远程仓库
5. 等待 Vercel Deploy 完成,访问分配的域名加载界面(eg. amis-editor-demo-murex.vercel.app)


## 历史版本预览地址
1. [5.6.1(2023.9.28)](https://aisuda.github.io/amis-editor-demo/demo-5.6.1/index.html)
2. [5.4.1(2023.6.9)](https://aisuda.github.io/amis-editor-demo/demo-5.4.1/index.html)
Expand Down