From 9b9799ec6f846eb40762f5ca8cc0aa6c27fb7e02 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 8 Oct 2024 23:39:45 +0800 Subject: [PATCH] chore: comment sitemap to make sure its can build safe --- .github/workflows/deploy-website.yml | 12 +----------- website/docusaurus.config.ts | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 23 deletions(-) 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/')); + // }, + // }, }, ], ],