Skip to content

Commit 23bba61

Browse files
authored
Update vercel.json
1 parent bf34581 commit 23bba61

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

vercel.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,15 @@
66
"use": "@vercel/node"
77
},
88
{
9-
"src": "public/**",
10-
"use": "@vercel/static"
11-
},
12-
{
13-
"src": "*.html",
14-
"use": "@vercel/static"
15-
},
16-
{
17-
"src": "*.css",
18-
"use": "@vercel/static"
19-
},
20-
{
21-
"src": "*.js",
9+
"src": "!api/**",
2210
"use": "@vercel/static"
2311
}
2412
],
2513
"routes": [
2614
{
2715
"src": "/api/(.*)",
2816
"dest": "/api/$1",
29-
"methods": ["GET", "POST", "PUT", "DELETE"]
30-
},
31-
{
32-
"src": "/(.*\\.(html|css|js|ico))",
33-
"dest": "/$1"
17+
"methods": ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
3418
},
3519
{
3620
"src": "/(.*)",

0 commit comments

Comments
 (0)