增加版本号配置
This commit is contained in:
+14
-14
@@ -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
@@ -11,4 +11,5 @@ export const prodConfig: AppConfigShape = {
|
||||
bgm: "https://hxzgame.vip.hnhxzkj.com/lzx/XiangQin/BGM/",
|
||||
},
|
||||
},
|
||||
};
|
||||
appVersion: "0.8.1",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user