Files
freqsplit/client/vite.config.ts
T
Joel Mathew Thomas 0d2ecc9d3d proxy websocket url
2025-03-20 00:53:16 +05:30

21 lines
400 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://localhost:8000',
changeOrigin: true,
},
'/ws': {
target: "ws://localhost:8000",
ws: true,
changeOrigin: true,
}
},
},
})