From a66d770bef03dedaa453d4127b838aef1a039802 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Sat, 4 Apr 2026 22:40:48 -0400 Subject: [PATCH] Add vite.config.js --- vite.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 vite.config.js diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..1c60328 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,20 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +export default defineConfig({ + plugins: [react()], + build: { + outDir: 'dist', + sourcemap: false, + minify: 'terser' + }, + server: { + proxy: { + '/api': { + target: 'http://localhost:8000', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, '/api') + } + } + } +})