44dc28dbb3
Use vercel.json redirects with the x-vercel-ip-country header condition to route mainland China visitors to the ICP-licenced server.
17 lines
279 B
JSON
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
|
|
}
|
|
]
|
|
}
|