code-server/cursor-fullstack/packages/frontend/cursor-web/vite.config.ts
Cursor Agent 05acbfff1e feat: Set up fullstack Cursor IDE with backend and frontend
Co-authored-by: logato7838 <logato7838@vsihay.com>
2025-10-12 12:22:34 +00:00

25 lines
No EOL
470 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true
},
'/socket.io': {
target: 'http://localhost:3001',
changeOrigin: true,
ws: true
}
}
},
build: {
outDir: 'dist',
sourcemap: false
}
})