From 536ea78b28782a4877e8b7ad3a00dcaffaa01850 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 8 Mar 2026 22:46:44 -0500 Subject: [PATCH] Add Vite configuration --- client/vite.config.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 client/vite.config.js 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