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" }