vite.config.ts 352 B

123456789101112131415161718
  1. import { defineConfig } from 'vite';
  2. import react from '@vitejs/plugin-react';
  3. export default defineConfig({
  4. plugins: [react()],
  5. server: {
  6. proxy: {
  7. '/api': {
  8. target: 'http://localhost:3000',
  9. changeOrigin: true,
  10. },
  11. '/ws/rdp': {
  12. target: 'ws://localhost:3000',
  13. ws: true,
  14. },
  15. },
  16. },
  17. });