Add vercel support?

This commit is contained in:
Wasi Master
2026-05-15 04:04:15 +06:00
parent 7965a41119
commit 9eff9d1806
3 changed files with 37 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
.git
.gitignore
README.md
screenshots/
docker-compose*.yaml
Dockerfile
.env.local
.env.*.local
+9
View File
@@ -0,0 +1,9 @@
import sys
import os
# Add app directory to path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'app'))
from portable import app
# Export for Vercel
+20
View File
@@ -0,0 +1,20 @@
{
"version": 2,
"buildCommand": "pip install -r requirements.txt",
"env": {
"PYTHONUNBUFFERED": "1"
},
"functions": {
"api/index.py": {
"runtime": "python3.12",
"memory": 3008,
"maxDuration": 60
}
},
"routes": [
{
"src": "/(.*)",
"dest": "/api/index.py"
}
]
}