纳入范围: - backend/ Spring Boot 多模块后端(iot-common/device/rule/data/alarm/auth) - frontend/admin/ Vue3 + Element Plus 管理后台 - Android/ 涂鸦原生 APP (com.xhai.iot) - backend/sql/ Flyway 风格迁移脚本(V2~V21) - docs/ 对接文档与设计文档 排除范围: - 构建产物: node_modules/ target/ build/ dist/ .gradle/ - 签名密钥: *.jks *.keystore (严禁入库) - 本机配置: Android/local.properties - 运行日志: logs/ *.log - AI 协作本地数据 .codebuddy/ 与第三方 demo tuya-demo/ .gitattributes 统一以 LF 存储, Windows 批处理保留 CRLF
69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
export default defineConfig({
|
|
plugins: [uni()],
|
|
server: {
|
|
port: 9000,
|
|
host: '0.0.0.0',
|
|
proxy: {
|
|
// 设备服务 + 认证 (9081)
|
|
'/api/v1/devices': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/auth': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/device-groups': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/users': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/roles': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/logs': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/homes': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/tuya': {
|
|
target: 'http://localhost:9081',
|
|
changeOrigin: true
|
|
},
|
|
// 数据服务 (9082)
|
|
'/api/v1/data': {
|
|
target: 'http://localhost:9082',
|
|
changeOrigin: true
|
|
},
|
|
// 规则服务 (9083)
|
|
'/api/v1/rules': {
|
|
target: 'http://localhost:9083',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/linkage-rules': {
|
|
target: 'http://localhost:9083',
|
|
changeOrigin: true
|
|
},
|
|
// 告警服务 (9084)
|
|
'/api/v1/alarms': {
|
|
target: 'http://localhost:9084',
|
|
changeOrigin: true
|
|
},
|
|
'/api/v1/alarm-rules': {
|
|
target: 'http://localhost:9084',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|