mirror of
https://github.com/Nezumi-2711/json-server-vercel.git
synced 2026-09-22 13:38:40 +00:00
Update directory
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "api/server.js",
|
"main": "api/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start-flask": "python main.py",
|
"start-flask": "python api/main.py",
|
||||||
"start-express": "nodemon api/server.js",
|
"start-express": "nodemon api/server.js",
|
||||||
"start":"npm run start-proxy & npm run start-flask & npm run start-express"
|
"start":"npm run start-proxy & npm run start-flask & npm run start-express"
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-9
@@ -1,17 +1,10 @@
|
|||||||
{
|
{
|
||||||
"functions": {
|
"functions": {
|
||||||
"main.py": {
|
"api/main.py": {
|
||||||
"runtime": "vercel/python@4.1.0"
|
"runtime": "vercel/python@4.1.0"
|
||||||
},
|
},
|
||||||
"api/server.js": {
|
"api/server.js": {
|
||||||
"memory": 1024,
|
|
||||||
"includeFiles": "db.json"
|
"includeFiles": "db.json"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"rewrites": [
|
|
||||||
{
|
|
||||||
"source": "/(.*)",
|
|
||||||
"destination": "api/server.js"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user