Files
cultivation-world-simulator/web/vite.config.ts
bridge cdc3322ff0 temp
2025-11-20 01:27:48 +08:00

22 lines
393 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8002',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:8002',
ws: true,
changeOrigin: true,
}
}
}
})