25 lines
464 B
TypeScript
25 lines
464 B
TypeScript
/**
|
|
* 环境的类型,接口定义
|
|
*/
|
|
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;
|
|
// 其他:开关、埋点、灰度、版本号……
|
|
}
|
|
|