Finalize CRM transformation, mobile responsiveness, and Qdrant integration
This commit is contained in:
@@ -12,6 +12,20 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
port: 3000,
|
||||
open: true
|
||||
open: true,
|
||||
// Proxy Qdrant so the api-key stays server-side and the browser avoids CORS.
|
||||
// Frontend calls /qdrant/... → forwarded to the Qdrant cluster with the key injected.
|
||||
proxy: {
|
||||
'/qdrant': {
|
||||
target: 'http://66.116.207.225:6333',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/qdrant/, ''),
|
||||
configure: (proxy) => {
|
||||
proxy.on('proxyReq', (proxyReq) => {
|
||||
proxyReq.setHeader('api-key', 'Package@321#');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user