mirror of
https://github.com/Nezumi-2711/json-server-vercel.git
synced 2026-09-22 13:38:40 +00:00
Update vercel.json
This commit is contained in:
+14
-1
@@ -1,7 +1,20 @@
|
|||||||
{
|
{
|
||||||
"functions": {
|
"functions": {
|
||||||
|
"api/main.py": {
|
||||||
|
"runtime": "vercel/python@4.1.0"
|
||||||
|
},
|
||||||
"api/server.js": {
|
"api/server.js": {
|
||||||
"includeFiles": "db.json"
|
"includeFiles": "db.json"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"rewrites": [
|
||||||
|
{
|
||||||
|
"source": "/api/express/(.*)",
|
||||||
|
"destination": "api/server.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "/api/flask/(.*)",
|
||||||
|
"destination": "api/main.py"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user