22 lines
465 B
TypeScript
22 lines
465 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8073',
|
|
changeOrigin: true,
|
|
},
|
|
'/broker': {
|
|
target: 'ws://10.42.23.73:8083',
|
|
ws: true,
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/broker/, ''),
|
|
},
|
|
},
|
|
},
|
|
})
|