Docs: add vercel.json (#5311)

Signed-off-by: yangchuansheng <yangchuansheng33@gmail.com>
This commit is contained in:
Carson Yang
2024-12-25 18:34:25 +08:00
committed by GitHub
parent 0d81eea608
commit 5793471f52
3 changed files with 28 additions and 4 deletions
+2 -2
View File
@@ -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 ]
+2 -2
View File
@@ -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
View File
@@ -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
}
]
}