Files
opensource.onixbyte.com/vercel.json
T
siujamo 44dc28dbb3 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.
2026-05-27 10:04:29 +08:00

17 lines
279 B
JSON

{
"redirects": [
{
"source": "/:path(.*)",
"has": [
{
"type": "header",
"key": "x-vercel-ip-country",
"value": "CN"
}
],
"destination": "https://onixbyte.cn/:path*",
"permanent": false
}
]
}