Files
PVS/web/vite.config.js
2026-03-21 00:54:10 -04:00

20 lines
570 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
base: '/ui/',
server: {
host: true, // listen on 0.0.0.0 so other machines on the LAN can connect
proxy: {
'/params': 'http://127.0.0.1:8000',
'/snapshot': 'http://127.0.0.1:8000',
'/stream': 'http://127.0.0.1:8000',
'/patch': 'http://127.0.0.1:8000',
'/midi': 'http://127.0.0.1:8000',
'/lfo': 'http://127.0.0.1:8000',
'/ws': { target: 'ws://127.0.0.1:8000', ws: true },
}
}
})