import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import dynamicImport from 'vite-plugin-dynamic-import'; import path from 'path'; import { fileURLToPath } from "url"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), dynamicImport()], resolve: { alias: { "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "src"), }, }, server: { port: 3130, proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true, }, }, }, });