import { defineConfig, mergeConfig } from 'vite'
import baseConfig from './vite.config.js'
// Isolated dev stack for profiling / experiments: proxies to a dedicated
// navi-server clone on 8097 instead of the main one on 8099.
// Usage: npx vite --config vite.config.perf.js
export default mergeConfig(baseConfig, {
server: {
proxy: {
'/api': {
target: 'http://localhost:8097',
rewrite: path => path.replace(/^\/api/, '')
},
'/ws': {
target: 'ws://localhost:8097',
ws: true
}
}
}
})