增加版本号配置

This commit is contained in:
2025-09-21 13:14:13 +08:00
parent ef6d38eca5
commit 11e8e516b7
4 changed files with 287 additions and 114 deletions
+14 -14
View File
@@ -2,24 +2,24 @@
* 环境的类型,接口定义
*/
export enum Env {
Dev = "dev",
Test = "test",
Prod = "prod",
Dev = "dev",
Test = "test",
Prod = "prod",
}
export interface CDNConfig {
bgm: string;
bgm: string;
}
export interface Endpoints {
httpBase: string; // 业务 HTTP
socketBase: string; // WebSocket
cdn: CDNConfig; // 各类静态资源
httpBase: string; // 业务 HTTP
socketBase: string; // WebSocket
cdn: CDNConfig; // 各类静态资源
}
export interface AppConfigShape {
env: Env;
endpoints: Endpoints;
// 其他:开关、埋点、灰度、版本号……
env: Env;
endpoints: Endpoints;
// 其他:开关、埋点、灰度、版本号……
appVersion: string;
}
+2 -1
View File
@@ -11,4 +11,5 @@ export const prodConfig: AppConfigShape = {
bgm: "https://hxzgame.vip.hnhxzkj.com/lzx/XiangQin/BGM/",
},
},
};
appVersion: "0.8.1",
};