diff --git a/global/vite.config.js b/global/vite.config.js new file mode 100644 index 0000000..ad8b00d --- /dev/null +++ b/global/vite.config.js @@ -0,0 +1,22 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +export default defineConfig({ + plugins: [react()], + server: { + port: 3011, + proxy: { + '/api': 'http://localhost:3010', + }, + }, + build: { + outDir: 'dist', + rollupOptions: { + output: { + manualChunks: { + react: ['react', 'react-dom'], + }, + }, + }, + }, +});