chore: add api rewrite to vercel configure

This commit is contained in:
Ahmed Bouhuolia
2023-07-07 01:14:37 +02:00
parent c992562760
commit b24badfa52

View File

@@ -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": "/"
}
]
}