From d0715eb47fe87baa1b5dade51623954313c04fb8 Mon Sep 17 00:00:00 2001 From: Loi Phan Date: Sat, 13 Jan 2024 22:31:59 +0700 Subject: [PATCH] Update vercel.json --- vercel.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 756ac66..173ebb9 100644 --- a/vercel.json +++ b/vercel.json @@ -1,7 +1,20 @@ { "functions": { + "api/main.py": { + "runtime": "vercel/python@4.1.0" + }, "api/server.js": { "includeFiles": "db.json" } - } + }, + "rewrites": [ + { + "source": "/api/express/(.*)", + "destination": "api/server.js" + }, + { + "source": "/api/flask/(.*)", + "destination": "api/main.py" + } + ] }