Add vite.config.js

This commit is contained in:
Zac Gaetano 2026-04-04 22:40:48 -04:00
parent 986fb63cc3
commit a66d770bef

20
vite.config.js Normal file
View file

@ -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')
}
}
}
})