vite.config.ts 371 B

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