From a9f6b6a39fa477398a904ba3063832f2f9d933e3 Mon Sep 17 00:00:00 2001 From: rubickecho Date: Tue, 7 Nov 2023 14:23:18 +0000 Subject: [PATCH 1/2] docs: update README, add vercel deploy steps --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 92474a5..34f3cbf 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,28 @@ 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 变更到远程仓库 + + ## 历史版本预览地址 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) From c33b6e5e5b3561542128c9ed02730bea8cfea91e Mon Sep 17 00:00:00 2001 From: rubickecho Date: Tue, 7 Nov 2023 14:28:36 +0000 Subject: [PATCH 2/2] docs: update README, add vercel deploy steps --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 34f3cbf..0ad3d82 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ amis 可视化编辑器, 在线体验:https://aisuda.github.io/amis-editor-dem // 省略 ``` 4. Push 变更到远程仓库 +5. 等待 Vercel Deploy 完成,访问分配的域名加载界面(eg. amis-editor-demo-murex.vercel.app) ## 历史版本预览地址