Sobroinc commited on
Commit
f3f9afd
·
1 Parent(s): 38c4317

Add Vercel configuration

Browse files
Files changed (2) hide show
  1. api/index.py +5 -0
  2. vercel.json +18 -0
api/index.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from app import app as application
2
+
3
+ # Vercel serverless function handler
4
+ def handler(request, context):
5
+ return application(request, context)
vercel.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 2,
3
+ "builds": [
4
+ {
5
+ "src": "app.py",
6
+ "use": "@vercel/python"
7
+ }
8
+ ],
9
+ "routes": [
10
+ {
11
+ "src": "/(.*)",
12
+ "dest": "app.py"
13
+ }
14
+ ],
15
+ "env": {
16
+ "PYTHON_VERSION": "3.9"
17
+ }
18
+ }