From 8ba23c2dac28716449db89e9132c4ed1b20a72d2 Mon Sep 17 00:00:00 2001 From: yangchuansheng Date: Wed, 19 Feb 2025 04:56:46 +0000 Subject: [PATCH] chore(ci): explicitly specify vercel config path in deployment workflows - Add local config path to production deployment in deploy.yml - Set config path for preview environment in preview.yml Signed-off-by: yangchuansheng --- .github/workflows/deploy.yml | 2 +- .github/workflows/preview.yml | 1 + vercel.json | 54 +++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 vercel.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7fa3acb..aac1f52 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: ./ \ No newline at end of file diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e26c17b..47bae83 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -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: ./ \ No newline at end of file diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..9ca841e --- /dev/null +++ b/vercel.json @@ -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": "/pricing", + "destination": "https://sealos.run/pricing", + "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 + } + ] +} \ No newline at end of file