mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
Docs: add vercel.json (#5311)
Signed-off-by: yangchuansheng <yangchuansheng33@gmail.com>
This commit is contained in:
@@ -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 ]
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user