guandan.dev

guandan.dev

https://git.tonybtw.com/guandan.dev.git git://git.tonybtw.com/guandan.dev.git
251 bytes raw
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
      '/ws': {
9
        target: 'ws://localhost:8080',
10
        ws: true,
11
      },
12
    },
13
  },
14
})