新增米家环境监控模块 (采集/聚合/历史/前端 EnvView) + CI 挂载米家凭证目录并自动应用迁移
Docker Build and Push / build-image (push) Successful in 6m54s
Docker Build and Push / build-image (push) Successful in 6m54s
This commit is contained in:
@@ -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')
|
||||
}
|
||||
Reference in New Issue
Block a user