Skip to content

Commit f30a571

Browse files
committed
修复GitHub Pages部署路径配置
- 将vite.config.ts中的base路径从'/coze-plugin-curl-filter/'修改为'/curl-filter/' - 匹配实际部署地址 https://jsrei.github.io/curl-filter/ - 更新DEPLOYMENT.md中的部署地址信息 - 重新构建验证路径正确性
1 parent fe5087c commit f30a571

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
`vite.config.ts` 已配置为适配 GitHub Pages:
2828

29-
- **base 路径**:设置为 `/coze-plugin-curl-filter/` 以匹配仓库名
29+
- **base 路径**:设置为 `/curl-filter/` 以匹配实际部署路径
3030
- **构建输出**:输出到 `dist` 目录
3131
- **源映射**:启用源映射文件用于调试
3232

@@ -44,7 +44,7 @@
4444
1. 将代码推送到 `main` 分支
4545
2. GitHub Actions 自动触发构建
4646
3. 构建成功后自动部署到 GitHub Pages
47-
4. 网站将在 `https://open-api-hub.github.io/coze-plugin-curl-filter/` 可访问
47+
4. 网站将在 `https://jsrei.github.io/curl-filter/` 可访问
4848

4949
### 5. 本地测试
5050

vite.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import react from '@vitejs/plugin-react'
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
// 设置基础路径为仓库名,适配GitHub Pages
8-
base: '/coze-plugin-curl-filter/',
7+
// 设置基础路径为实际部署路径,适配GitHub Pages
8+
base: '/curl-filter/',
99
server: {
1010
port: 25519,
1111
host: true

0 commit comments

Comments
 (0)