feat: add Vercel geo-redirect config for China mainland visitors
Deploy to GitHub Pages / build (push) Failing after 7m30s
Deploy to GitHub Pages / deploy (push) Has been skipped

Use vercel.json redirects with the x-vercel-ip-country header condition
to route mainland China visitors to the ICP-licenced server.
This commit is contained in:
2026-05-27 10:04:29 +08:00
parent f71e557a31
commit 44dc28dbb3
+16
View File
@@ -0,0 +1,16 @@
{
"redirects": [
{
"source": "/:path(.*)",
"has": [
{
"type": "header",
"key": "x-vercel-ip-country",
"value": "CN"
}
],
"destination": "https://onixbyte.cn/:path*",
"permanent": false
}
]
}