diff --git a/backend/api/index.py b/backend/api/main.py similarity index 100% rename from backend/api/index.py rename to backend/api/main.py diff --git a/backend/vercel.json b/backend/vercel.json index 312d6930..7d5d3a10 100644 --- a/backend/vercel.json +++ b/backend/vercel.json @@ -1,13 +1,14 @@ { - "functions": { - "api/index.py": { - "runtime": "python3.11" - } - }, - "routes": [ - { - "src": "/(.*)", - "dest": "/api/index.py" - } - ] + "builds":[ + { + "src": "api/main.py", + "use": "@vercel/python" + } + ], + "routes": [ + { + "src": "/(.*)", + "dest": "api/main.py" + } + ] } \ No newline at end of file