diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index e76d360..d1bd96b 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -19,16 +19,6 @@ jobs: working-directory: website steps: - uses: actions/checkout@v4 - - name: Pre build - uses: amondnet/vercel-action@v25.1.1 - env: - VERSION: ${{ env.GITHUB_SHA }} - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} - vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN - working-directory: ./ - vercel-args: 'build' - name: Deploy to Vercel uses: amondnet/vercel-action@v25.1.1 env: @@ -38,4 +28,4 @@ jobs: vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN working-directory: ./ - vercel-args: 'deploy --prebuilt --prod' + vercel-args: '--prod' diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 3ce9197..a55503b 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -57,18 +57,19 @@ const config: Config = { require.resolve('./src/css/custom.css'), ], }, - sitemap: { - lastmod: 'date', - changefreq: 'weekly', - priority: 0.5, - ignorePatterns: ['/tags/**'], - filename: 'sitemap.xml', - createSitemapItems: async (params) => { - const { defaultCreateSitemapItems, ...rest } = params; - const items = await defaultCreateSitemapItems(rest); - return items.filter((item) => !item.url.includes('/page/')); - }, - }, + // need .git file, not easy build in vercel with cli, ignore now + // sitemap: { + // lastmod: 'date', + // changefreq: 'weekly', + // priority: 0.5, + // ignorePatterns: ['/tags/**'], + // filename: 'sitemap.xml', + // createSitemapItems: async (params) => { + // const { defaultCreateSitemapItems, ...rest } = params; + // const items = await defaultCreateSitemapItems(rest); + // return items.filter((item) => !item.url.includes('/page/')); + // }, + // }, }, ], ],