docs: rebrand to KatelyaTV and add release notes\n\n- Update QUICKSTART, PROJECT_STATUS, CONTRIBUTING, CHANGELOG\n- Add RELEASE_NOTES.md for v0.1.0-katelya\n- UI text: replace MoonTV mentions where user-facing\n- Config defaults: SITE_NAME -> KatelyaTV\n- Version check: allow env override, keep MoonTV fallback\n- Upstash client: add KatelyaTV global symbol with legacy alias\n- LocalStorage: migrate keys to katelyatv_* with legacy fallback

This commit is contained in:
Cursor Agent
2025-08-29 07:56:19 +00:00
parent a9bd8e47e1
commit 672a386d2c
7 changed files with 38 additions and 18 deletions
+6 -2
View File
@@ -11,11 +11,15 @@ export enum UpdateStatus {
FETCH_FAILED = 'fetch_failed', // 获取失败
}
// 远程版本检查URL配置
// 远程版本检查URL配置(支持环境变量覆盖,并保留 MoonTV 上游作为后备)
const ENV_PRIMARY = process.env.NEXT_PUBLIC_VERSION_URL_PRIMARY;
const ENV_BACKUP = process.env.NEXT_PUBLIC_VERSION_URL_BACKUP;
const VERSION_CHECK_URLS = [
ENV_PRIMARY,
ENV_BACKUP,
'https://ghfast.top/raw.githubusercontent.com/senshinya/MoonTV/main/VERSION.txt',
'https://raw.githubusercontent.com/senshinya/MoonTV/main/VERSION.txt',
];
].filter(Boolean) as string[];
/**
* 检查是否有新版本可用