lamassu-server/new-lamassu-admin/vite.config.js
Rafael d3c3de66fe chore: prettier config
husky needs to be delegated to v11 since it breaks with node 14 + 22
combo
2024-12-03 09:33:06 +00:00

34 lines
741 B
JavaScript

import { fileURLToPath } from 'url'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import svgr from 'vite-plugin-svgr'
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
export default defineConfig({
base: '/',
build: {
outDir: 'build'
},
server: {
port: 3001,
proxy: {
'^/(graphql|operator-data|front-camera-photo|id-card-photo)': {
target: 'https://localhost:8070/',
changeOrigin: true,
secure: false
}
}
},
optimizeDeps: {
esbuildOptions: {
plugins: [fixReactVirtualized]
}
},
plugins: [react(), svgr()],
resolve: {
alias: {
src: fileURLToPath(new URL('./src', import.meta.url))
}
}
})