Skip to content

Commit 0aea40b

Browse files
committed
feat: 更新vercel.json,优化重写规则以支持路径匹配
1 parent 642f71a commit 0aea40b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

vercel.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
23
"rewrites": [
34
{
45
"source": "/.well-known/webfinger",
@@ -13,15 +14,15 @@
1314
"destination": "https://api.zcservice.houlang.cloud/.well-known/host-meta"
1415
},
1516
{
16-
"source": "/ap/:path*",
17-
"destination": "https://api.zcservice.houlang.cloud/ap/:path*"
17+
"source": "/ap/(.*)",
18+
"destination": "https://api.zcservice.houlang.cloud/ap/(.*)"
1819
},
1920
{
20-
"source": "/scratch/:path*",
21-
"destination": "/scratch/:path*"
21+
"source": "/scratch/(.*)",
22+
"destination": "/scratch/(.*)"
2223
},
2324
{
24-
"source": "/:match*",
25+
"source": "/(.*)",
2526
"destination": "/"
2627
}
2728
],

0 commit comments

Comments
 (0)