diff --git a/api/index.py b/api/index.py new file mode 100644 index 0000000..bb9e91c --- /dev/null +++ b/api/index.py @@ -0,0 +1,3 @@ +from backend.app import app + +app = app \ No newline at end of file diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..7a1ca50 --- /dev/null +++ b/vercel.json @@ -0,0 +1,26 @@ +{ + "version": 2, + "builds": [ + { + "src": "api/index.py", + "use": "@vercel/python" + }, + { + "src": "package.json", + "use": "@vercel/static-build" + } + ], + "routes": [ + { + "src": "/api/(.*)", + "dest": "/api/index.py" + }, + { + "handle": "filesystem" + }, + { + "src": "/(.*)", + "dest": "/index.html" + } + ] +} \ No newline at end of file