diff --git a/backend/agents/api/index.py b/backend/agents/api/index.py index 9ccf053..95ff249 100644 --- a/backend/agents/api/index.py +++ b/backend/agents/api/index.py @@ -415,5 +415,5 @@ async def root(): } # Export the FastAPI app for Vercel -handler = app -app_handler = app \ No newline at end of file +from mangum import Mangum +handler = Mangum(app) \ No newline at end of file diff --git a/backend/agents/requirements.txt b/backend/agents/requirements.txt index 9e4952a..cf7d17a 100644 --- a/backend/agents/requirements.txt +++ b/backend/agents/requirements.txt @@ -5,4 +5,5 @@ pydantic>=2.6.4 typing-extensions>=4.12.2 cua-agent>=0.4.31 cua-computer>=0.4.5 -supabase>=2.18.1 \ No newline at end of file +supabase>=2.18.1 +mangum>=0.17.0 \ No newline at end of file diff --git a/backend/agents/vercel.json b/backend/agents/vercel.json index 2dc2994..4033620 100644 --- a/backend/agents/vercel.json +++ b/backend/agents/vercel.json @@ -1,18 +1,18 @@ { "version": 2, - "builds": [ - { - "src": "api/index.py", - "use": "@vercel/python" + "functions": { + "api/index.py": { + "runtime": "python3.9" } - ], + }, "routes": [ { "src": "/(.*)", - "dest": "api/index.py" + "dest": "/api/index.py" } ], "env": { - "PYTHONPATH": "." + "PYTHONPATH": ".", + "STORAGE_PATH": "/tmp" } } \ No newline at end of file diff --git a/newfeature.js b/newfeature.js new file mode 100644 index 0000000..261e602 --- /dev/null +++ b/newfeature.js @@ -0,0 +1 @@ +// this is a NEW FEATURE!!!!! \ No newline at end of file