From 15e7f30ac6c1f3bcd07d1b8ffae131ff7d78d86f Mon Sep 17 00:00:00 2001 From: superjolly Date: Mon, 14 Apr 2025 16:52:15 +0800 Subject: [PATCH 1/4] Update static-deploy.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新「部署静态站点」章节,新增 EdgeOne Pages 部署。 --- guide/static-deploy.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/guide/static-deploy.md b/guide/static-deploy.md index 262c76d5..ff14632e 100644 --- a/guide/static-deploy.md +++ b/guide/static-deploy.md @@ -149,6 +149,22 @@ $ npm run preview - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ``` +## EdgeOne Pages {#edgeone-pages} + +你可以在 [EdgeOne Pages](https://edgeone.ai/zh/products/pages) 快速部署你的Vite 应用。 只需: + +1. 创建一个 [EdgeOne 账号](https://edgeone.ai/zh/register?s_url=https%3A%2F%2Fconsole.tencentcloud.com%2Fedgeone%2Fpages),进入 Pages [控制台](https://console.tencentcloud.com/edgeone/pages)页面。 +2. 链接你的 GitHub/Gitee/Coding 账号或使用平台提供的模板,也可直接上传你的代码包。 +3. 指定项目名称、加速区域、生产分支、构建配置、环境变量等相关配置信息。 +4. 点击 **开始部署**。 +5. 部署完成后,应用默认在 `https://+随机字符串.edgeone.app/`(仅海外加速下)或 `https://+随机字符串.edgeone.site/`(含国内加速下)。 + +请注意,所有对指定的生产分支(默认是"main")的commit都会自动触发新的部署。 + +你也可以为应用添加[自定义域名](https://edgeone.ai/zh/document/160427672892563456?srouce=github#909bc024-7344-40c0-8be1-cfa9b1fab5a5)。 + +查看 EdgeOne Pages 的 [Git集成](https://edgeone.ai/zh/document/171937194382536704?source=github) 了解更多细节。 + ## Netlify {#netlify} ### Netlify CLI {#netlify-cli} From 48c8850b873b63f589dc053abc3764b34d5d79b3 Mon Sep 17 00:00:00 2001 From: superjolly Date: Mon, 14 Apr 2025 18:04:51 +0800 Subject: [PATCH 2/4] Update static-deploy.md --- guide/static-deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/static-deploy.md b/guide/static-deploy.md index ff14632e..a4869c8a 100644 --- a/guide/static-deploy.md +++ b/guide/static-deploy.md @@ -157,7 +157,7 @@ $ npm run preview 2. 链接你的 GitHub/Gitee/Coding 账号或使用平台提供的模板,也可直接上传你的代码包。 3. 指定项目名称、加速区域、生产分支、构建配置、环境变量等相关配置信息。 4. 点击 **开始部署**。 -5. 部署完成后,应用默认在 `https://+随机字符串.edgeone.app/`(仅海外加速下)或 `https://+随机字符串.edgeone.site/`(含国内加速下)。 +5. 部署完成后,应用默认在 `https://-<随机字符串>.edgeone.app/`(仅海外加速下)或 `https://-<随机字符串>.edgeone.site/`(含国内加速下)。 请注意,所有对指定的生产分支(默认是"main")的commit都会自动触发新的部署。 From cd859930433bd28f7bae1a8b65014fc2f49ae4f7 Mon Sep 17 00:00:00 2001 From: superjolly Date: Mon, 14 Apr 2025 18:10:15 +0800 Subject: [PATCH 3/4] Update static-deploy.md --- guide/static-deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/static-deploy.md b/guide/static-deploy.md index a4869c8a..45de71de 100644 --- a/guide/static-deploy.md +++ b/guide/static-deploy.md @@ -159,7 +159,7 @@ $ npm run preview 4. 点击 **开始部署**。 5. 部署完成后,应用默认在 `https://-<随机字符串>.edgeone.app/`(仅海外加速下)或 `https://-<随机字符串>.edgeone.site/`(含国内加速下)。 -请注意,所有对指定的生产分支(默认是"main")的commit都会自动触发新的部署。 +请注意,所有对指定的生产分支(通常是"main")的commit都会自动触发新的部署。 你也可以为应用添加[自定义域名](https://edgeone.ai/zh/document/160427672892563456?srouce=github#909bc024-7344-40c0-8be1-cfa9b1fab5a5)。 From 87c71cd6f83938f88d47b456d2255ffb57ab5056 Mon Sep 17 00:00:00 2001 From: superjolly Date: Mon, 14 Apr 2025 18:12:28 +0800 Subject: [PATCH 4/4] Update static-deploy.md --- guide/static-deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/static-deploy.md b/guide/static-deploy.md index 45de71de..830ba8a2 100644 --- a/guide/static-deploy.md +++ b/guide/static-deploy.md @@ -159,7 +159,7 @@ $ npm run preview 4. 点击 **开始部署**。 5. 部署完成后,应用默认在 `https://-<随机字符串>.edgeone.app/`(仅海外加速下)或 `https://-<随机字符串>.edgeone.site/`(含国内加速下)。 -请注意,所有对指定的生产分支(通常是"main")的commit都会自动触发新的部署。 +请注意,所有对指定生产分支(通常是"main")的commit都会自动触发新的部署。 你也可以为应用添加[自定义域名](https://edgeone.ai/zh/document/160427672892563456?srouce=github#909bc024-7344-40c0-8be1-cfa9b1fab5a5)。