mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
chore: add api rewrite to vercel configure
This commit is contained in:
11
vercel.json
11
vercel.json
@@ -3,7 +3,12 @@
|
|||||||
"buildCommand": "CI='' npm run build:webapp",
|
"buildCommand": "CI='' npm run build:webapp",
|
||||||
"outputDirectory": "packages/webapp/build",
|
"outputDirectory": "packages/webapp/build",
|
||||||
"rewrites": [{
|
"rewrites": [{
|
||||||
"source": "/(.*)",
|
"source": "/api/:slug*",
|
||||||
"destination": "/"
|
"destination": "https://dev.bigcapital.ly/api/:slug*"
|
||||||
}]
|
},
|
||||||
|
{
|
||||||
|
"source": "/(.*)",
|
||||||
|
"destination": "/"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user