Skip to content

Commit 89727bb

Browse files
committed
Fix Vercel static root
1 parent 4c2fec0 commit 89727bb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

vercel.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
22
"cleanUrls": true,
3-
"public": true,
4-
"builds": [
5-
{ "src": "api/*.rs", "use": "@vercel/rust" },
6-
{ "src": "www/**", "use": "@vercel/static" }
7-
],
3+
"public": "www",
4+
"builds": [{ "src": "api/*.rs", "use": "@vercel/rust" }],
85
"rewrites": [
9-
{ "source": "/api/:path*", "destination": "/api/:path*.rs" },
10-
{ "source": "/:path*", "destination": "/www/:path*" }
6+
{ "source": "/api/:path*", "destination": "/api/:path*.rs" }
117
]
128
}

0 commit comments

Comments
 (0)