增加环境配置

This commit is contained in:
chen wei bo
2025-08-15 14:30:09 +08:00
parent f928e7fabe
commit e64327bf09
15 changed files with 269 additions and 16 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* 环境的类型,接口定义
*/
export enum Env {
Dev = "dev",
Test = "test",
Prod = "prod",
}
export interface CDNConfig {
bgm: string;
}
export interface Endpoints {
httpBase: string; // 业务 HTTP
socketBase: string; // WebSocket
cdn: CDNConfig; // 各类静态资源
}
export interface AppConfigShape {
env: Env;
endpoints: Endpoints;
// 其他:开关、埋点、灰度、版本号……
}