Update directory

This commit is contained in:
2024-01-13 22:28:53 +07:00
parent 5d60a1c697
commit c29b153e30
3 changed files with 3 additions and 10 deletions
View File
+1 -1
View File
@@ -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"
}, },
+1 -8
View File
@@ -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"
} }
]
} }