Files
ssh-manager/frontend/vite.config.ts
T
2026-04-22 09:53:06 +08:00

19 lines
347 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:48080',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:48080',
ws: true,
},
},
},
})