Files
hamview/ui/vite.config.ts
maze 13afa08e8a
Some checks failed
Test and build / Test and lint (push) Failing after 36s
Test and build / Build collector (push) Failing after 43s
Test and build / Build receiver (push) Failing after 42s
Checkpoint
2026-03-05 15:38:18 +01:00

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/, ''),
},
},
},
})