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