fix:memindahkan requimentn ke api dan rubah vercel.json

This commit is contained in:
muhamad fais aizat 2025-05-15 20:28:33 +07:00
parent bce5d294f4
commit dd2b3a4dbb
2 changed files with 11 additions and 12 deletions

View File

@ -1,14 +1,13 @@
{ {
"builds":[ "functions": {
{ "api/index.py": {
"src": "index.py", "runtime": "python3.11"
"use": "@vercel/python" }
} },
], "routes": [
"routes": [ {
{ "src": "/(.*)",
"src": "/(.*)", "dest": "/api/index.py"
"dest": "index.py" }
} ]
]
} }