29 lines
677 B
JavaScript
29 lines
677 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
exclude: ['lucide-react'],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://192.168.0.3:3004',
|
|
changeOrigin: true,
|
|
secure: false
|
|
},
|
|
'/uploads': {
|
|
target: 'http://192.168.0.3:3004',
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/setupTests.js',
|
|
},
|
|
});
|