| 1234567891011121314151617181920212223242526272829 |
- import { defineConfig } from 'vite'
- import react from '@vitejs/plugin-react'
- import path from 'path'
- export default defineConfig({
- plugins: [react()],
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- },
- },
- server: {
- port: 3000,
- proxy: {
- '/api': {
- target: 'http://localhost:8090',
- changeOrigin: true,
- },
- '/ws': {
- target: 'ws://localhost:8090',
- ws: true,
- },
- },
- },
- build: {
- outDir: 'dist',
- sourcemap: true,
- },
- })
|