Files
feature-tenant/lib/core/env/env_config.dart
2026-01-21 13:27:55 +08:00

17 lines
444 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class EnvConfig {
static const String environment = String.fromEnvironment(
'ENV',
defaultValue: 'dev',
);
static String get sentryDsn {
// 根据环境切换 DSN(去 Sentry 后台创建两个项目:Test 和 Prod)
if (environment == 'prod') {
return 'https://your_prod_dsn@sentry.io/123';
}
return 'https://your_test_dsn@sentry.io/456';
}
static bool get isProduction => environment == 'prod';
}