Skip to content

Commit

Permalink
Docs: add vercel.json
Browse files Browse the repository at this point in the history
Signed-off-by: yangchuansheng <[email protected]>
  • Loading branch information
yangchuansheng committed Dec 25, 2024
1 parent dade357 commit 9363cbd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ 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
working-directory: ${{ env.BUILD_PATH }}/build
vercel-args: './build --local-config ./vercel.json' # Optional
working-directory: ${{ env.BUILD_PATH }}

docsOutput:
needs: [ build ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
working-directory: ${{ env.BUILD_PATH }}/build
vercel-args: './build --prod --local-config ./vercel.json'
working-directory: ${{ env.BUILD_PATH }}
24 changes: 24 additions & 0 deletions docs/website/vercel.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}

0 comments on commit 9363cbd

Please sign in to comment.