22 lines
498 B
JavaScript
22 lines
498 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import svgr from 'vite-plugin-svgr';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tsconfigPaths(), svgr()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './vitest.setup.mjs',
|
|
},
|
|
}); |