Chore: Api route fix and vercel.json removed

This commit is contained in:
kartik-gupta-ij 2023-11-01 23:25:48 +05:30
parent 79af2ba79e
commit 6e1cdf4509
2 changed files with 1 additions and 14 deletions

View File

@ -1,13 +0,0 @@
{
"rewrites": [
{
"source": "/api",
"destination": "https://code-search.qdrant.tech/api/"
},
{
"source": "/api/:path*",
"destination": "https://code-search.qdrant.tech/api/:path*"
}
]
}

View File

@ -13,7 +13,7 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
"/api": { "/api": {
target: "https://code-search.qdrant.tech/", target: "http://0.0.0.0:8000",
changeOrigin: true, changeOrigin: true,
}, },
}, },