diff --git a/.github/workflows/deploy-docs-preview.yml b/.github/workflows/deploy-docs-preview.yml index 9029e37dc57..06eb76efa95 100644 --- a/.github/workflows/deploy-docs-preview.yml +++ b/.github/workflows/deploy-docs-preview.yml @@ -86,7 +86,7 @@ jobs: vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required github-comment: false - # vercel-args: '--local-config vercel.json' # Optional + vercel-args: '--local-config vercel.json' # Optional working-directory: ${{ env.BUILD_PATH }}/build docsOutput: diff --git a/.github/workflows/deploy-docs-site.yml b/.github/workflows/deploy-docs-site.yml index b7af76412c8..b54accba2e0 100644 --- a/.github/workflows/deploy-docs-site.yml +++ b/.github/workflows/deploy-docs-site.yml @@ -69,5 +69,5 @@ jobs: vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} #Required vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required github-comment: false - vercel-args: '--prod' + vercel-args: '--prod --local-config vercel.json' working-directory: ${{ env.BUILD_PATH }}/build diff --git a/docs/website/vercel.json b/docs/website/vercel.json new file mode 100644 index 00000000000..0190921d038 --- /dev/null +++ b/docs/website/vercel.json @@ -0,0 +1,24 @@ +{ + "redirects": [ + { + "source": "/zh-Hans/blog/:path(.*)", + "destination": "https://blog.sealos.run/blog/:path", + "permanent": true + }, + { + "source": "/zh-Hans/blog", + "destination": "https://blog.sealos.run/blog", + "permanent": true + }, + { + "source": "/zh-Hans/:path(.*)", + "destination": "https://sealos.run/:path", + "permanent": true + }, + { + "source": "/zh-Hans", + "destination": "https://sealos.run/", + "permanent": true + } + ] + } \ No newline at end of file