Initial commit of react-revamp for Auditor Portal

This commit is contained in:
2026-06-10 18:33:17 +05:30
commit a4c0892741
45 changed files with 7095 additions and 0 deletions

21
vite.config.ts Normal file
View File

@@ -0,0 +1,21 @@
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/, ''),
},
'/api/audit': {
target: 'https://sr-audit.takeleap.in',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/audit/, ''),
},
},
},
})