2026-04-02 18:39:35 +08:00
|
|
|
class Env {
|
2026-04-30 11:07:57 +08:00
|
|
|
static const _productionBackendUrl = 'https://api.meeyao.com';
|
|
|
|
|
|
2026-04-02 18:39:35 +08:00
|
|
|
static String get backendUrl {
|
|
|
|
|
final injected = const String.fromEnvironment('BACKEND_URL');
|
|
|
|
|
if (injected.isNotEmpty && injected != 'false') {
|
|
|
|
|
return injected;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 11:07:57 +08:00
|
|
|
return _productionBackendUrl;
|
2026-04-02 18:39:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<void> init() async {}
|
|
|
|
|
}
|