/ dashboard-v2 / frontend / vite.config.js
vite.config.js
 1  import { defineConfig } from 'vite';
 2  import react from '@vitejs/plugin-react';
 3  
 4  export default defineConfig({
 5    plugins: [react()],
 6    server: {
 7      proxy: {
 8        '/api': {
 9          target: 'http://localhost:8502',
10          changeOrigin: true,
11        },
12      },
13    },
14    build: {
15      outDir: 'dist',
16      sourcemap: false,
17    },
18  });