From a2f683960b351f003bff754766b4bbd3dff2fb78 Mon Sep 17 00:00:00 2001 From: Aryanta Putra <290991705+ARPL-F2@users.noreply.github.com> Date: Sat, 13 Jun 2026 14:02:36 +0700 Subject: [PATCH] chore: prepare vercel deployment --- api/index.py | 3 +++ vercel.json | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 api/index.py create mode 100644 vercel.json 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