Skip to content

Commit 8f55033

Browse files
committed
Configure API functions in vercel.json for proper serverless function detection
1 parent 9bc2b54 commit 8f55033

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

vercel.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"functions": {
3-
"api/**/*.ts": {
4-
"runtime": "@vercel/node@18.x"
5-
}
6-
}
3+
"api/data-files.ts": {},
4+
"api/data-files/[filename].ts": {},
5+
"api/upload-csv.ts": {}
6+
},
7+
"routes": [
8+
{ "handle": "filesystem" },
9+
{ "src": "/api/(.*)", "dest": "/api/$1" },
10+
{ "src": "/(.*)", "dest": "/index.html" }
11+
]
712
}

0 commit comments

Comments
 (0)