feat: remove storage type in config

This commit is contained in:
shinya
2025-06-23 20:45:06 +08:00
parent 80addfff08
commit 44cd7d0ed3
6 changed files with 12 additions and 34 deletions

View File

@@ -31,10 +31,8 @@ const PLAY_RECORDS_KEY = 'moontv_play_records';
// ---- 环境变量 ----
const STORAGE_TYPE =
(process.env.NEXT_PUBLIC_STORAGE_TYPE as
| 'localstorage'
| 'database'
| undefined) || 'localstorage';
(process.env.STORAGE_TYPE as 'localstorage' | 'database' | undefined) ||
'localstorage';
// ---------------- 搜索历史相关常量 ----------------
const SEARCH_HISTORY_KEY = 'moontv_search_history';