Initial commit of react-revamp for Auditor Portal
This commit is contained in:
21
vite.config.ts
Normal file
21
vite.config.ts
Normal 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/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user