ops-console v1.0.2 (versionCode 8) 源码入库
This commit is contained in:
17
lib/config/environment.dart
Normal file
17
lib/config/environment.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
/// 应用运行环境枚举。
|
||||
///
|
||||
/// 默认含 [test](测试)、[staging](预发)。
|
||||
/// [production] 原被 [ProductionGuard] 与 [AppConfig.switchEnvironment] 刻意阻断;
|
||||
/// 现按用户明确要求出正式版(域名 https://ips.ainetv.com)开放。注意
|
||||
/// `ips.ainetv.com` 子域不在 ProductionGuard 拒绝名单(精确匹配
|
||||
/// ainetv.com / api.ainetv.com / 58.220.83.58)内,故守卫不会拦截。
|
||||
enum AppEnvironment {
|
||||
/// 测试环境。后端 `https://ips-test.ainetv.com`。
|
||||
test,
|
||||
|
||||
/// 预发环境。后端地址见 [StagingConfig],同样非生产。
|
||||
staging,
|
||||
|
||||
/// 生产环境。后端 `https://ips.ainetv.com`(见 [ProdConfig])。
|
||||
production,
|
||||
}
|
||||
Reference in New Issue
Block a user