新增米家环境监控模块 (采集/聚合/历史/前端 EnvView) + CI 挂载米家凭证目录并自动应用迁移
Docker Build and Push / build-image (push) Successful in 6m54s

This commit is contained in:
jif2.zhang
2026-09-21 11:42:58 +08:00
parent 53f63e0986
commit 8e2c6ffa35
36 changed files with 11327 additions and 428 deletions
+10
View File
@@ -0,0 +1,10 @@
// 米家凭证缓存目录: 认证 token 只落本地磁盘, 不进库不进 git
// 环境变量:
// MIHOME_CACHE_DIR 覆盖 (默认 <cwd>/server/mihome/.cache)
import path from 'node:path'
export function cacheDir() {
return process.env.MIHOME_CACHE_DIR
? path.resolve(process.env.MIHOME_CACHE_DIR)
: path.resolve(process.cwd(), 'server', 'mihome', '.cache')
}