final / vite.config.js
Yingtao-Zheng's picture
Put all the models together (expect UI)
4a5bfab
raw
history blame
364 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
secure: false,
},
'/ws': {
target: 'ws://localhost:8000',
ws: true,
}
}
}
})