Files
pig-farm-controller/frontend/vite.config.js
huang 7112a16ca8 1. 前端改为vue单体程序
2. 增加设备管理相关接口
2025-09-08 18:16:40 +08:00

25 lines
469 B
JavaScript

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