From 2b03240efbaa7f4ee173ec41efd863945cb28474 Mon Sep 17 00:00:00 2001 From: Chenyme <118253778+chenyme@users.noreply.github.com> Date: Sun, 8 Feb 2026 00:20:49 +0800 Subject: [PATCH] chore: update vercel configuration to use FastAPI framework --- vercel.json | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/vercel.json b/vercel.json index 2389330..17e67f0 100644 --- a/vercel.json +++ b/vercel.json @@ -1,21 +1,12 @@ { "$schema": "https://openapi.vercel.sh/vercel.json", "version": 2, - "builds": [ - { - "src": "main.py", - "use": "@vercel/python" - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "main.py" - } - ], - "functions": { - "main.py": { - "excludeFiles": "{tests/**,docs/**,data/**,logs/**,__pycache__/**,**/*.pyc,**/*.pyo}" - } + "framework": "fastapi", + "env": { + "LOG_LEVEL": "INFO", + "LOG_FILE_ENABLED": "false", + "DATA_DIR": "/tmp/data", + "SERVER_STORAGE_TYPE": "local", + "SERVER_STORAGE_URL": "" } }