guandan.dev

guandan.dev

https://git.tonybtw.com/guandan.dev.git git://git.tonybtw.com/guandan.dev.git
290 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
    host: '127.0.0.1',
8
    port: 5173,
9
    proxy: {
10
      '/ws': {
11
        target: 'ws://localhost:8080',
12
        ws: true,
13
      },
14
    },
15
  },
16
})