From b24badfa52445d3244fed9763200e96ca1d09a06 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Fri, 7 Jul 2023 01:14:37 +0200 Subject: [PATCH] chore: add api rewrite to vercel configure --- vercel.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/vercel.json b/vercel.json index 39a032ef2..565e459c9 100644 --- a/vercel.json +++ b/vercel.json @@ -3,7 +3,12 @@ "buildCommand": "CI='' npm run build:webapp", "outputDirectory": "packages/webapp/build", "rewrites": [{ - "source": "/(.*)", - "destination": "/" - }] + "source": "/api/:slug*", + "destination": "https://dev.bigcapital.ly/api/:slug*" + }, + { + "source": "/(.*)", + "destination": "/" + } + ] } \ No newline at end of file