import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/api/v1': {
        target: 'http://127.0.0.1:8080',
        changeOrigin: true,
      },
      '/api/v1/ws': {
        target: 'ws://127.0.0.1:8080',
        ws: true,
      }
    }
  }
})