From 44dc28dbb3a765855a099853eb0021ea50d6a9ed Mon Sep 17 00:00:00 2001 From: siujamo Date: Wed, 27 May 2026 10:04:29 +0800 Subject: [PATCH] feat: add Vercel geo-redirect config for China mainland visitors Use vercel.json redirects with the x-vercel-ip-country header condition to route mainland China visitors to the ICP-licenced server. --- vercel.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..d2b4482 --- /dev/null +++ b/vercel.json @@ -0,0 +1,16 @@ +{ + "redirects": [ + { + "source": "/:path(.*)", + "has": [ + { + "type": "header", + "key": "x-vercel-ip-country", + "value": "CN" + } + ], + "destination": "https://onixbyte.cn/:path*", + "permanent": false + } + ] +}