From 8ef37053a83f5022b0fc436df9bdf238a36d4292 Mon Sep 17 00:00:00 2001 From: sanbuphy Date: Mon, 12 Jan 2026 13:00:43 +0800 Subject: [PATCH] ci: update vercel config and github workflow for deployment Update vercel.json to specify Vite framework and build command Modify deploy.yml to include base path in build command for GitHub Pages --- .github/workflows/deploy.yml | 3 ++- vercel.json | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 37292a7..7afd988 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,7 +40,8 @@ jobs: - name: Install dependencies run: npm ci - name: Build with VitePress - run: npm run build + # 假设仓库名为 easy-vibe,如果是其他名称,请修改 /easy-vibe/ 为 /仓库名/ + run: npm run build -- --base /easy-vibe/ - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/vercel.json b/vercel.json index 958d026..ad8b340 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,5 @@ { + "framework": "vite", + "buildCommand": "npm run build", "outputDirectory": "docs/.vitepress/dist" }