From 71a32efb13f44bb57a0b9fa12df1ba29ebcbed2c Mon Sep 17 00:00:00 2001 From: owenguoo <88258850+owenguoo@users.noreply.github.com> Date: Sat, 13 Sep 2025 21:30:38 -0400 Subject: [PATCH 1/2] new features --- newfeature.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 newfeature.js 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 From 8d41864a7d1a5431e68774d172d337117bed61c1 Mon Sep 17 00:00:00 2001 From: owenguoo <88258850+owenguoo@users.noreply.github.com> Date: Sat, 13 Sep 2025 21:36:34 -0400 Subject: [PATCH 2/2] fixes --- backend/agents/api/index.py | 4 ++-- backend/agents/requirements.txt | 3 ++- backend/agents/vercel.json | 14 +++++++------- 3 files changed, 11 insertions(+), 10 deletions(-) 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