nhance_partner/lib/core/config/env.dart
2026-04-15 17:59:19 +05:30

53 lines
1.6 KiB
Dart

class Env {
static const String envName = String.fromEnvironment(
'ENV',
defaultValue: 'dev',
);
static const String apiUrl = String.fromEnvironment(
'API_URL',
// defaultValue: 'https://partner.nhanceindia.in/partner_api/api/', /* Live build (enable index.html line 18) */
defaultValue: 'https://venbait.in/nhance/partner/dev/api/', /* Test build (enable index.html line 19) */
// defaultValue: 'http://localhost/nhance_partner_be/', /* localhost build (enable index.html line 19) */
);
// static const String baseUrl = String.fromEnvironment(
// 'BASE_URL',
// defaultValue: '/nhance/partner/app',
// );
static const String App_Signature = String.fromEnvironment(
'App_Signature',
defaultValue: 'nhance-partner-2025-signature-35468846JRhH551HK',
);
}
// class Env {
//
// static const String App_Signature = String.fromEnvironment(
// 'App_Signature',
// defaultValue: 'nhance-partner-2025-signature-35468846JRhH551HK',
// );
//
// static const String env = String.fromEnvironment('ENV', defaultValue: 'dev');
//
// static String get apiUrl {
// switch (env) {
// case 'prod':
// return 'https://partner.nhanceindia.in/partner_api/api/';
// case 'test':
// return 'https://venbait.in/nhance/partner/dev/api/';
// default:
// return 'https://localhost/api/';
// }
// }
//
// static String get baseHref {
// switch (env) {
// case 'prod':
// return '/partner/';
// case 'test':
// return '/nhance/partner/app/';
// default:
// return '/localhost/partner/app/';
// }
// }
//
// }