Skip to content

Commit

Permalink
chore(ci): explicitly specify vercel config path in deployment workflows
Browse files Browse the repository at this point in the history
- Add local config path to production deployment in deploy.yml
- Set config path for preview environment in preview.yml

Signed-off-by: yangchuansheng <yangchuansheng33@gmail.com>
  • Loading branch information
yangchuansheng committed Feb 19, 2025
1 parent c7c596e commit 8ba23c2
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required
github-comment: false
# vercel-args: '--local-config vercel.json' # Optional
vercel-args: '--prod'
vercel-args: '--prod --local-config ./vercel.json'
working-directory: ./
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ jobs:
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} #Required
github-comment: false
# vercel-args: '--local-config vercel.json' # Optional
vercel-args: '--local-config ./vercel.json'
working-directory: ./
54 changes: 54 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"redirects": [
{
"source": "/zh-Hans/blog/:path(.*)",
"destination": "https://blog.sealos.run/blog/:path",
"permanent": false
},
{
"source": "/docs/Intro",
"destination": "https://sealos.io/docs/overview/intro",
"permanent": false
},
{
"source": "/zh-Hans/:path(.*)",
"destination": "https://sealos.run/:path",
"permanent": false
},
{
"source": "/self-hosting",
"destination": "https://sealos.run/self-hosting",
"permanent": false
},
{
"source": "/#",
"destination": "https://sealos.run/#",
"permanent": false
},
{
"source": "/docs/5.0.0/user-guide/ai-proxy",
"destination": "https://sealos.run/docs/5.0.0/user-guide/ai-proxy/",
"permanent": false
},
{
"source": "/docs/5.0.0/developer-guide/sealos/installation",
"destination": "https://sealos.run/docs/5.0.0/developer-guide/sealos/installation",
"permanent": false
},
{
"source": "/docs/self-hosting/sealos/installation",
"destination": "https://sealos.run/docs/self-hosting/sealos/installation",
"permanent": false
},
{
"source": "/docs/self-hosting/lifecycle-management/quick-start/deploy-kubernetes",
"destination": "https://sealos.run/docs/self-hosting/lifecycle-management/quick-start/deploy-kubernetes",
"permanent": false
},
{
"source": "/company",
"destination": "https://sealos.run/company",
"permanent": false
}
]
}

0 comments on commit 8ba23c2

Please # to comment.