Add vercel support?
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
README.md
|
||||||
|
screenshots/
|
||||||
|
docker-compose*.yaml
|
||||||
|
Dockerfile
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
@@ -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
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user