diff --git a/client/vite.config.js b/client/vite.config.js new file mode 100644 index 0000000..b27038c --- /dev/null +++ b/client/vite.config.js @@ -0,0 +1,31 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +export default defineConfig({ + plugins: [react()], + server: { + port: 5173, + proxy: { + '/api': { + target: 'http://localhost:3000', + changeOrigin: true + }, + '/uploads': { + target: 'http://localhost:3000', + changeOrigin: true + } + } + }, + build: { + outDir: 'dist', + sourcemap: false, + rollupOptions: { + output: { + manualChunks: { + vendor: ['react', 'react-dom', 'react-router-dom'], + tree: ['react-d3-tree', 'd3'] + } + } + } + } +}) \ No newline at end of file