26 lines
533 B
TypeScript
Executable file
26 lines
533 B
TypeScript
Executable file
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
}
|
|
}
|
|
},
|
|
optimizeDeps: {
|
|
include: ['lucide-react'],
|
|
exclude: ['@webcomponents/custom-elements']
|
|
},
|
|
build: {
|
|
commonjsOptions: {
|
|
include: [/node_modules/],
|
|
transformMixedEsModules: true
|
|
}
|
|
}
|
|
});
|