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