import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], server: { proxy: { '/api/dashboard': { target: 'https://sr-backend-api.takeleap.in', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/dashboard/, ''), headers: { Origin: 'https://auditor-qa.seekright.com', Referer: 'https://auditor-qa.seekright.com/' } }, '/api/audit': { target: 'https://sr-audit.takeleap.in', changeOrigin: true, rewrite: (path) => path.replace(/^\/api\/audit/, ''), headers: { Origin: 'https://auditor-qa.seekright.com', Referer: 'https://auditor-qa.seekright.com/' } }, }, }, })